昨天我做了git pull
,它从Github回购中获取最新副本。Git - 撤消所有更改更改
我昨天做了一些编码,但我没有做git add .
现在我想重置它是什么,从昨天 - 这意味着除去从昨天回来的一切工作变为原来的(最后的git拉)。
如何做到这一点?
$ git status
On branch develop
Your branch is behind 'origin/develop' by 5 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: app/Http/Kernel.php
modified: app/Http/routes.php
modified: composer.json
modified: database/seeds/DatabaseSeeder.php
no changes added to commit (use "git add" and/or "git commit -a")
的可能的复制[如何恢复未提交的更改,包括文件和文件夹?(http://stackoverflow.com/questions/5807137/how-to-revert-uncommitted-changes-including -files-and-folders) –