Changes for page Getting Started with Git
Last modified by Bastian Triller on 2013/05/21 17:24
From version 177.1
edited by Kieran Kelleher
on 2011/07/25 18:05
on 2011/07/25 18:05
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.ki eran1 +XWiki.kiddyr - Content
-
... ... @@ -127,10 +127,8 @@ 127 127 128 128 === How to revert? === 129 129 130 -Reverting is easy: 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: 131 131 132 -{{code}} 133 - 134 -git reset --hard 135 - 136 -{{/code}} 132 +> ##git ls-files --d | xargs git checkout --## 133 +>\\ 134 +>>Isn't that intuitive?