Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # remove files from commit
  2. git reset --soft HEAD^
  3.  
  4. # revert all changes
  5. git status | while IFS=: read -A line; do echo $line[2]; git reset HEAD $line[2]; done
  6.  
  7. # discard changes
  8. 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