Why I liked git before:
- Distributed
- Fast
- Github
- (hip)
Why I love git now:
- Branching does not disrupt workflow
[code]
# …working on myBranch…
git stash
git checkout someOtherBranch
# …make your changes to someOtherBranch…
git commit
git checkout myBranch
git stash pop
# and I’m right back where I left off!
[/code]
- Rebase
[code]
# instead of:
git merge master
# and getting a messy commit log.. do this:
git rebase master
# and your commits starting after you branched
# are rewound and applied on top of the latest from master
# are rewound and applied on top of the latest from master
[/code]
- The command line interface is so powerful and usable that I don’t rely on GUI tools (except for resolving conflicts)
- Pull requests (Github again)
0 comments:
Post a Comment