命令
git log --decorate --oneline --graph --all
git branch -d feature2
git init
git add 1.txt
git commit -m "1.txt"
git checkout HEAD~
git checkout master
git reset --hard feature
命令
git log --decorate --oneline --graph --all
git branch -d feature2
git init
git add 1.txt
git commit -m "1.txt"
git checkout HEAD~
git checkout master
git reset --hard feature
转载于:https://my.oschina.net/u/4056014/blog/2999893