3 ms·
Git does 50,000 things, but to get started on your local machine you only need 4 commands. When you're setting up for the first time: git init When you've
by strken 8y ago
Git does 50,000 things, but to get started on your local machine you only need 4 commands.
When you're setting up for the first time:
git init
When you've made a change you want to keep:
vim foo.txt
git add foo.txt
git commit -m "Add foo.txt to project to enhance synergy"
When you did something wrong and want to go back to when you last ran git commit:
git checkout foo.txt
Everything else builds on top of that workflow.