DEV Community

Discussion on: Git Cheat Sheet ๐Ÿ“„ (50 commands + PDF and poster)

Collapse
 
cyberjack profile image
CyberJack

And yet another git article where the "switch" and "restore" commands are missing.

The checkout command has multiple responsibilities, which isn't a good thing. So 2 new commands where created. The "switch" command can be used to create and/or switch to a branch, while the "restore" command can be used to restore working tree files.

Collapse
 
doabledanny profile image
Danny Adams

Thanks for the suggestions - I probably should've included "switch", but just stuck with "checkout" as it's what I always use.