4 ms·
I simply don't agree with this. There's nothing wtf about git add, git commit, git push. Those are the commands that normal developers use. Maybe git reflog h
by Touche 12y ago
I simply don't agree with this. There's nothing wtf about git add, git commit, git push. Those are the commands that normal developers use. Maybe git reflog has issues but 90% of people are never going to come across them.
- worklogin 12y agoNothing about that deals with collaboration. fetch/merge/pull/remotes can be pretty confusing without really wrapping your head around it.
- Touche 12y agoWhat is wtf about git pull? > git pull origin master (fix conflicts) > git commit That's it.
- dfabulich 12y ago1) Pull creates a merge commit. Why? 2) What's a fast forward? 3) What's a tracking branch?
- somebehemoth 12y ago1) So you can revert the merge very easily. 2) Merging without a commit. 3) A branch on a remote server that you have a copy of locally and you want to keep track of the status of remote against the local copy (who's behind and who is ahead?). This is my basic understanding in terms of how I use git. I like Mercurial too and don't have a horse in this race.
- mpdehaan2 12y agoWhile this somewhat underscores some complexity in git, here's something I wrote trying to explain to others why and how to avoid those merge commits: http://michaeldehaan.net/post/116465000577/understanding-when-to-use-git-rebase http://michaeldehaan.net/post/116465000577/understanding-whe...
- Touche 12y agoYou don't need to know any of these things to get along fine.
- Macha 12y agoWhich is why git literally has the person who wrote the book blogging about how he didn't understand git reset: http://git-scm.com/blog http://git-scm.com/blog