Git report files modified on which I did not work

git statusreports a large set of files that will be "new", "changed" and "deleted" in a directory tree in which I have never worked. In Subversion, I would do svn revert --recursive iPhone(I'm not working on an iPhone version of the application) and do with. But using Git is not easy. With Git, this is always complicated.

So, I'm a little in a panic because the iPhone team will tear me up if I ruin the code. And it will be a mayor mess, as more than 50 files are reported.

Can someone help me?

+3
source share
2 answers

Equivalent Git command:

git reset --hard HEAD

, , ( ). , , , , .

+2

, git stash, . , . man:

git stash, , . HEAD .

, git stash , git stash show, ( ) git stash . git stash - git stash . "WIP branchname...", .

refs/stash; reflog (, stash @{0} , stash @{1} , , stash@{2.hours.ago} ).

+2

All Articles