Guest User

Untitled

a guest
Mar 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Remove e.g. large files
  2. git filter-branch prune-empty -index-filter "git rm -cached -f -ignore-unmatch TWUndDieWeihnachtsmaenner.mpg" -all
  3.  
  4. # Edit commit message of the last commit
  5. git commit --amend
  6.  
  7. # Modify last or one of the last 3 commits or only their commit messages
  8. git rebase -i HEAD~3
  9.  
  10. # Merge current staging area content with last commit
  11. git commit --amend
  12.  
  13. # Remove last commit (changes are kept in local working area)
  14. git reset --soft HEAD^
Add Comment
Please, Sign In to add comment