3 ms·
Possibly `git branch NEWBRANCHNAME` instead of `git checkout -b NEWBRANCHNAME`. When I need to show git to someone in order for them to contribute to something,
by mixedmath 3y ago
Possibly `git branch NEWBRANCHNAME` instead of `git checkout -b NEWBRANCHNAME`. When I need to show git to someone in order for them to contribute to something, I give them only these incantations --- and instructions to ask me if weird git things happen.
- rkangel 3y agoYou then need to do both `git branch xxx` and `git checkout xxx` though. If you teach "checkout to move around and add -b when moving to a new branch the first time" that works pretty well
- still_grokking 3y agoIt's `git switch [-c]` nowadays.
- someone7x 3y agoI've given up trying to configure git push the branch I'm on so I type this little dance each time : git switch -c foo git push > did you mean git push --args-with-branch-name? sigh, copy, paste, enter