Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # remove files from commit
- git reset --soft HEAD^
- # revert all changes
- git status | while IFS=: read -A line; do echo $line[2]; git reset HEAD $line[2]; done
- # discard changes
- git status | while IFS=: read -A line; do echo $line[2]; git checkout -- $line[2]; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement