Everyone has a folder of report_final_v2_REAL.docx. Git replaces it with commits: save points of your whole project that you can always go back to.
You're in ~/monster-market, a small project with two files.
-
Make the folder a repository, a project that git tracks:
bashgit init -
Pick the file to save:
bashgit add README.md -
Save it, with a message that says what changed:
bashgit commit -m "Add README"Git stops you with
Author identity unknown: every commit records who made it. -
Tell git your name and email, once for every project on this computer. Use your own:
bashgit config --global user.name "Ada Lovelace"bashgit config --global user.email [email protected] -
Run the
git commitline again.
Objectives
- Make
~/monster-marketa git repository. - Save your name and email in git's settings.
- Commit
README.mdwith a message.