Changes for page Getting Started with Git

Last modified by Bastian Triller on 2013/05/21 17:24

From version 176.1
edited by Ray Kiddy
on 2011/07/25 00:50
Change comment: git annoyances. are there any? yes, there are.
To version 178.1
edited by Kieran Kelleher
on 2011/07/25 18:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kiddyr
1 +XWiki.kieran
Content
... ... @@ -127,8 +127,10 @@
127 127  
128 128  === How to revert? ===
129 129  
130 -Reverting seems really complicated. Perhaps the simplicity of "svn revert" has fooled me. For example, say that a bunch of files get changed under you (such as, when eclipse helpfully changes the encoding specified for all the .woo files in a project without saying a word about it), how can you revert them. You might think "git revert" would work, but (if I understand it) that is only for reverting a checkin. Delete the file and do a revert? Nope. I know, svn will do just fine there, but not git. In order to do this, you need:
130 +Reverting is easy:
131 131  
132 -> ##git ls-files --d | xargs git checkout --##
133 ->\\
134 ->>Isn't that intuitive?
132 +{{code}}
133 +
134 +git reset --hard
135 +
136 +{{/code}}