I've seen several questions/answers very similar to this but still not sure I understand if they are what I need. So accept my apologies if this was covered before by something similar.
I have a private GitHub account with several repositories. I created these from my mac, pushed them to GitHub and everything works great.
From my Ubuntu desktop, I did a git clone and pulled a couple of the repositories to that desk top. Now from Ubuntu, I make a change to a file, add it, commit it, and push it to GitHub.
Question: How (what command) on my mac do I use to pull that change down to my local repository so I get that change(s)? UserName is JohnCowan, repo is sacnomadgolf.git
Thanks for the help.
The content of the multiple remote repositories can be pulled to the local drive by using the command, `git pull origin` or `git pull upstream`.
To pull down (i.e. copy) the changes merged into your fork, you can use the Terminal and the git pull command. To begin: On your local computer, navigate to your forked repo directory. Once you have changed directories to the forked repo directory, run the command git pull .
You said you made the repo on your Mac. Then you can just do git pull
in the folder you have the repository in.
A really good resource on Git, with explanatory illustrations about the "Git workflow":
http://git-scm.com/doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With