Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. function rebase {
  2. if [ -z "$1" ]; then
  3. branch='master'
  4. else
  5. branch="$1"
  6. fi
  7.  
  8. commit_sha="$(git merge-base --fork-point $branch)"
  9.  
  10. echo "Executing: git rebase -i $commit_sha"
  11.  
  12. git rebase -i "$commit_sha"
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement