# Check local master log
$ git status
$ git log --oneline --decorate
# If necessary,
$ git add .
$ git commit -m "commit message"# In this status, you might be "detached HEAD" status and you cannot push.
$ git push
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git push origin HEAD:<name-of-remote-branch>
$ git branch -a
* (no branch, rebasing master)
master
remotes/origin/HEAD -> origin/master
remotes/origin/master
# If you commit successfully like above, you can continue rebase by:
$ git rebase --continue
Successfully rebased and updated refs/heads/master.
# Then do proceed when your work is on the HEAD of your working tree:
$ git push