3 ms·
If the following looked normal, it can be simplified: Create a new branch from master. Checkout the newly created branch. Create and push your fix commit
by karmakaze 7y ago
If the following looked normal, it can be simplified:
Create a new branch from master.
Checkout the newly created branch.
Create and push your fix commit.
If everything is alright, file a pull request.
Get it reviewed and merged.
Switch back to master.
That seems like a lot of unnecessary branch switching. I'm hardly ever on master. Checkout with -b option, fetch --prune, rebase onto origin/master.
Edit: bonus tip `git checkout -` works like `cd -` but for branches.
- jacknews 7y ago"Edit: bonus tip `git checkout -` works like `cd -` but for branc" Oooh, thanks!!!