I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
Git Branches: Intuition and Reality
11–20 of 281 posts
Re: Git Branches: Intuition and Reality
#12> in general, even if people’s intuition about a topic is technically incorrect in some ways, people usually have the intuition they do for very legitimate reasons! This is worth an essay of its own.
Re: Git Branches: Intuition and Reality
#13I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
Re: Git Branches: Intuition and Reality
#14I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
protip: If you want to switch branch you can now use "git switch [-c] foo". If you want to restore files you can do "git restore .". Basically you can stop using checkout. *edit*: fixed switch branch creation parameter.
Re: Git Branches: Intuition and Reality
#15Re: Git Branches: Intuition and Reality
#16I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
Re: Git Branches: Intuition and Reality
#17Warning, all text, no diagrams....
Re: Git Branches: Intuition and Reality
#18Some concept of "parent" and "child" branches would actually be pretty interesting. You do have to support multiple "parent" branches though for long term support branches.
Re: Git Branches: Intuition and Reality
#19I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
Then there's of course `git log`, `git diff`, and `git status`, but I presume you know about those as well.
Re: Git Branches: Intuition and Reality
#20I cannot be the only one that gets away with only knowing: git pull git merge x git checkout [-b] foo git commit git push
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.
If you teach "checkout to move around and add -b when moving to a new branch the first time" that works pretty well