Changes for page Getting Started with Git
Last modified by Bastian Triller on 2013/05/21 17:24
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. kiddyr1 +XWiki.t_hoepfner - Content
-
... ... @@ -7,11 +7,17 @@ 7 7 ** MacOS X [[.dmg Binary Installers>>http://code.google.com/p/git-osx-installer/]] 8 8 ** Microsoft Windows [[.exe Binary Installers>>http://code.google.com/p/msysgit/]] 9 9 10 +{{info title="Git is included with XCode 4.x"}} 11 + 12 +XCode 4.x installs a copy of git in /usr/bin/git 13 + 14 +{{/info}} 15 + 10 10 = Learn About Git = 11 11 12 12 * Learn the concepts. 13 13 ** [[This>>http://www.eecs.harvard.edu/~~cduan/technical/git/]] is an excellent tutorial on the basic concepts behind Git 14 - 20 +** [[Git for Computer Scientists>>http://eagain.net/articles/git-for-computer-scientists/]] gives another good view on the underlying concepts 15 15 * Learn the basics. 16 16 ** [[Everyday GIT With 20 Commands Or So>>http://www.kernel.org/pub/software/scm/git/docs/everyday.html]] 17 17 ** [[Free Online Pro Git book>>http://progit.org/book/]] ... ... @@ -123,12 +123,14 @@ 123 123 124 124 Keep in mind that the difficult part of what you do should be the thinking. Git makes it easy to organize and share your thoughts as branches. Your local copies may be messy or not. They are the thoughts you have in your head and lots of those thoughts will stay there and never see the light of day and that is ok. But when you have clarified your thoughts, git will make it easy to share them. 125 125 126 -= Git Annoyances =132 += Git Everyday Tasks = 127 127 128 128 === How to revert? === 129 129 130 -Reverting s eemsreallycomplicated.Perhaps thesimplicity of"svn revert" has fooled me. For example, say that a bunchof filesgetchangedunderyou (suchas, when eclipse helpfullychanges the encoding specified forallthe.woofiles ina project without saying a wordabout it), howcan yourevert them. You might think "gitrevert" wouldwork, but (if I understandit) that is only forrevertinga checkin. Delete thefileanddo a revert? Nope.I know, svn will do justfine there,but not git.In order to do this, you need:136 +Reverting is easy. The following command removes all modifications to files in your wqorking copy and brings them back to the HEAD. 131 131 132 -> ##git ls-files --d | xargs git checkout --## 133 ->\\ 134 ->>Isn't that intuitive? 138 +{{code}} 139 + 140 +git reset --hard 141 + 142 +{{/code}}