I am wondering what is the correct approach in the following situation.
I am working on master
branch locally and I have multiple uncommited changes that I don't want to commit to origin/master
yet.
I would like to commit my current changes to some newly created origin/temporary
branch (so someone else can quickly run the current stage of my workspace on his own) while keeping all the changes in local master
as they are, to be able to commit them to origin/master
later at some point.
I assume I have to use git stash
in some order, but I am not sure...
Edit:
Some of you have suggested, that I can just merge temporary
into master
. This is not the case, as I'm not assuming that the temporary branch contains anything to be accepted nor anything valid. It's purpose is just to quickly show the current code stage that will change surely before it is good enough for commiting to master or to be properly reviewed.
This is the reason why I do not want to treat those changes as real changes later in the tree, they are just ugly.