Skip to content

Instantly share code, notes, and snippets.

@ashrafuzzaman
Created July 28, 2015 08:29
Show Gist options
  • Save ashrafuzzaman/6fae5c5310a6a62617af to your computer and use it in GitHub Desktop.
Save ashrafuzzaman/6fae5c5310a6a62617af to your computer and use it in GitHub Desktop.
Rebase current branch on to master
branch_name="$(git symbolic-ref --short -q HEAD)"
echo "Rebasing" $branch_name
git fetch newscred master:master && git rebase newscred/master && git push --force origin $branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment