Advertisement
Dyrcona

git-fixup

Apr 10th, 2018
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # A small shell script to fixup (i.e. squash and remove the commit
  4. # message) of the top commit on a branch into the previous commit.
  5.  
  6. export GIT_EDITOR="sed -e 2s/^pick/fixup/ -i "
  7.  
  8. git rebase -i HEAD^^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement