Getting the latest changes from a git repository

1 view
Skip to first unread message

Michael Fey

unread,
Apr 30, 2010, 10:41:43 AM4/30/10
to syracuse-are...@googlegroups.com
One of the things that I briefly touched on last night was how to pull in changes from a git repository into your local repository.

From within your project directory run this command replacing REPOSITORY_URL and BRANCH as appropriate:
git pull REPOSITORY_URL BRANCH

Until we cover branching in more detail the BRANCH will just be master.
Here's an example. Let's say Bill had made some changes to Tardis and I wanted to pull these changes into my project:
cd ~/Development/Tardis

Once you've pulled these changes in you can then run git gui and push the changes back up to your github repo.

Oh, and one other point that I forgot to make last night about why I like git so much: it doesn't litter your entire project hierarchy with GIT or .git files and folders (like you might see with CVS or .svn). There is one .git directory at the root of the project and that's it. Very clean.

Cheers,
Michael
Chief CocoaHead

--
You received this message because you are subscribed to the Google Groups "Syracuse Area CocoaHeads" group.
To post to this group, send email to syracuse-are...@googlegroups.com.
To unsubscribe from this group, send email to syracuse-area-coco...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/syracuse-area-cocoaheads?hl=en.
Reply all
Reply to author
Forward
0 new messages