this post was submitted on 11 Aug 2023
302 points (98.7% liked)

Programming Humor

2804 readers
1 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 2 years ago
MODERATORS
302
submitted 2 years ago* (last edited 2 years ago) by 2e8a9d6bb6935a54 to c/programminghumor
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] tdawg 14 points 2 years ago (1 children)

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!

[โ€“] [email protected] 5 points 2 years ago

git switch - also works for this