Want to make a branch ?

git checkout

Want to make switch branches ?

git checkout

Want to get a specific file version ?

git checkout

Want to get remove changes to one file ?

Believe it or not, also git checkout

3 points
Deleted by creator
permalink
report
reply
8 points

We have the best flows in the world… Because of git checkout

permalink
report
reply
5 points

only just found out how cherry picking works I love it

permalink
report
reply
2 points

Nice, would you explain cherry picking to me, a dummy?

permalink
report
parent
reply
4 points
*

You can copy a commit that was pushed in branch 1 and paste it to branch 2

permalink
report
parent
reply
1 point

Thanks. I wonder what effect that has on the git history of branch 2?

For some reason I thought cherry picking might be the ability to take any file from any commit on any branch and copying it to the current branch.

permalink
report
parent
reply
13 points

Fun fact! If you have to quickly swap between two different branches you should try:

git checkout -

It will swap to the previous branch you were on. Have fun!

permalink
report
reply
5 points

git switch - also works for this

permalink
report
parent
reply
22 points

I confess, I use switch now

permalink
report
reply
2 points
Deleted by creator
permalink
report
parent
reply
14 points

And there is also git restore now.

permalink
report
parent
reply