Git Tutorial – 18 – Pushing to a GitHub Repository

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

20 Responses to Git Tutorial – 18 – Pushing to a GitHub Repository

  1. Christer Johansson

    Whaaat? My username is NOT buckyroberts?! xD Great tutorial! (Even though it's been 4 years now)

  2. moto_HYUTS

    4:24 worth a thumb in itself.

  3. Marty Gusto

    how did you get a URL for uploading the project? How can we make our own repository? and how do I upload it from bash? I'm using windows and I have already made an empty repo online but I want to add project files that are offline.

  4. jaz norden

    you can copy and right click on git to paste it

  5. Dev Eagle

    So apparently you must do a "git pull" first before you can push to a new repository? I get an error when trying to push for the first time?
    error: Updates were rejected because the remote contains work that you do
    hint: not have locally.

  6. Christian Giangreco

    For those asking: the -u (upstream) option is basically what's linking the local repo (on your PC) with the remote one (on GitHub). That way, you can later on use the commands git push and git pull without arguments, because git will already know to what repository you wanna apply these actions.

  7. Smitha Ru

    when I try "$ git push repo master" I am getting the below error…..i tried fetch,pull,merge…..can anyone please help me….?

    ! [rejected] master -> master (non-fast-forward)
    error: failed to push some refs to ''
    hint: Updates were rejected because a pushed branch tip is behind its remote
    hint: counterpart. Check out this branch and integrate the remote changes
    hint: (e.g. 'git pull …') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push –help' for details.

  8. Quentin James

    Is it only me or does this guy sound like a younger Robert Downey Jr? Thanks for the great video btw, helped me a lot 🙂


    you can also use shift+insert(ins) in place of typing full link(address).


    when am typing this command : git push -u origin master..then
    am getting this error : permission denied could not read from remote repository

  11. Yunxin Zhang

    easy to understand and helps a lot

  12. m_m

    You can paste in CMD using right mouse click.

  13. Raghu Khanal

    This looked like the first repository you uploaded to your git. Of course, you have tons now, but how did you already knew so much about git, when you just added your first repository? You probably had git before, or you teach Youtube while learning it yourself. Either way, you are really smart man, l admire your passion for learning and teaching!

  14. John

    Thanks bro =)

  15. Silkey Van

    ctrl/shift + Ins could copy and paste by default

  16. Blue BukkitDev

    To copy and paste, right click. Easy.

  17. Juznik

    I LOVE YOU MAN! no homo 😉 But you did what others coulnd't, jesus….

  18. Moshe Cohen

    thank you!!!

  19. Ammar The Trainer

    Thanks for the useful tutorials. I'm getting a problem with command " git push -u reponame master " when i hit enter , it opens up the github desktop version that is asking for the credentials. I've provided the credentials but not logging in ,How to handle it ?

  20. Aaron Grant

    To copy first copy something and then click on the icon on the top left of gitbash and the click on paste.

Leave a Reply

Your email address will not be published. Required fields are marked *