Skip to content

Instantly share code, notes, and snippets.

@xfsnowind
Created September 29, 2015 18:45
Show Gist options
  • Select an option

  • Save xfsnowind/cbef688f7fe5436138e4 to your computer and use it in GitHub Desktop.

Select an option

Save xfsnowind/cbef688f7fe5436138e4 to your computer and use it in GitHub Desktop.
how git status after git hard reset on blog difference among soft mixed and hard of git command git reset on 2014/03/26
# Shell
> git reset --hard HEAD~1
> git status
On branch master Untracked files:
(use "git add <file>..." to include in what will be committed)
stagingMappe/
nothing added to commit but untracked files present
(use "git add" to track)
> tree
├── stagingMappe
│ └── untrackedFil
└── text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment