I’ve just started working with a team on git and I wanted a visual of what was going on every time I made a change and needed to checkin some code.
Abandon branch
$ git branch -D topic-branch
How to create a remote branch and have your friend get it
Here’s a graphic showing one way of creating a remote branch, checking it in locally, pushing it to the remote server, and then having your friend pick it up.
Pull requests
Here Mary developers a new feature locally, then pushes it to here remote branch for others to see.
She then issues a pull request allowing others to view.
https://www.atlassian.com/git/tutorials/making-a-pull-request/where-to-go
Apr 28, 2012 @ 20:08:12
Good overview 🙂 I’d just like to add that instead of “git commit -a -m” you can do “git commit -am” – saves a tiny bit of typing!
Apr 29, 2012 @ 15:56:42
Love it. Thanks for the tip.
May 15, 2012 @ 22:55:59
Hi JR, nice graphic!
One little thing: if you use git add . you don’t need -a in git commit. The -a switch lets you skip git add when there are no new files
May 17, 2012 @ 12:46:59
Ah yes you are right. Thank you for pointing that out Jose.