Changes for page Getting Started with Git
Last modified by Bastian Triller on 2013/05/21 17:24
From version 175.1
edited by Ray Kiddy
on 2011/07/25 00:50
on 2011/07/25 00:50
Change comment:
git annoyances. are there any? yes, there are.
To 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 ddyr1 +XWiki.kieran - Content
-
... ... @@ -127,8 +127,10 @@ 127 127 128 128 === How to revert? === 129 129 130 -Reverting seems really complicated. Perhapsthesimplicity of "svn revert" hasfooled me. For example, saythat 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}}