Skip to content

Instantly share code, notes, and snippets.

@titipata
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save titipata/fbdb0ca8154e2fb17ec3 to your computer and use it in GitHub Desktop.

Select an option

Save titipata/fbdb0ca8154e2fb17ec3 to your computer and use it in GitHub Desktop.
Rebase!

Memo for Rebase

If we are behind the remote repository, first we need to fetch from the remote repository.

git fetch

Then we commit the changes we have made in local repository and then we will rebase the origin to the master (make our commit header goes after the recent fetched header) i.e.

git add .
git commit -m "comments"
git rebase origin/master

Now we can push stuff to the repo by just do

git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment