昨天我做了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) –