Trying to get a branch I created after working in a detached HEAD for a while, to be my master branch, but concerned that I may use the wrong sequence of actions and mess up my repo (local and remote)...
Series of actions (in "fork", a git GUI) resulting in the status shown in the image below:
- commit tagged "v0.56.4 release" pushed to remote
- did some changes and messed up my code. Stashed the changed files and checked out the previous commit to "revert" to a clean code
- continued development from there on, regularly committing and pushing changes to remote, only mildly bothered by the "detached HEAD" warning I was getting, as all the literature told me this would be an easy fix.
- commit tagged "v0.57 release 1" followed by creating a new branch called "tmp".
How do I make this "tmp" branch my new "master" branch, leaving the "stash@{0}" changes as a dead branch I have no intention to revisit?
This thread appears to provide close to the solution I am looking for, except that it doesn't mention any stashing of anything, so I am not sure what potential conflict/issue could result from following its sequence of actions.