I've been making changes and then renaming the master
to an appropriate branch name at the end. My thinking was I'd just delete the git file. I didn't feel like I needed the master
because I'm always making pull requests on Github and should differentiate them from the master branch.
My process is generally:
git branch -m master nbranchName
git commit -m "details here"
git push origin -u nbranchName
I've have two problems come up:
- Recent push included files from a precious push request now I have to sort them out
- Due to problem 1, I am hesitant to start work on a new branch especially because I'm still seeing the following with I
git status
On branch nbranchName Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working tree clean
My changes have been accepted and merged. So I can probably just delete the whole file and re-clone but I'm trying to figure out if I'm missing a step here, and is it okay form to change the master name like I have done.