Push changes to remote repo without commit

No, there is no way to do that, as it would completely oppose the whole "git strategy", I guess. I don't know about your deployment system, but I guess a good way to do what you are trying to is to work on different branches (that is, on for development and one which gets deployed when pushed to), and merging the changes you want to be deployed from your development-branch into your live branch.


You can create an empty commit and push that: git commit --allow-empty


No, you must make a commit before you can push. What is being pushed is the commit (or commits).


You can amend your last commit with the --no-edit option then force push the branch.

git commit --amend --no-edit
git push origin <remote name> -f

Tags:

Git