Skip to content

Instantly share code, notes, and snippets.

View stasl's full-sized avatar

Stas Ladonenko stasl

  • Freelance
  • Ukraine
View GitHub Profile
@stasl
stasl / gist:5917465
Created July 3, 2013 12:22
rebase current branch
BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
git co master;
git pull --rebase;
git co $BRANCH;
git rebase master;
git push --force origin $BRANCH;