Which commit message should I choose?
- “Changes”
- “Added line ‘This project started as a joke’ to myfile.txt”
- “Discuss origin of the project”
Make it short, descriptive, and imperative 🐺
So yeah, the last one is good! 🐺--- ## Quiz 2/2
Which command saves myfile.txt to my Git repo?
$ git commit -m "my recent changes"
$ git init myfile.txt $ git commit -m "my recent changes"
$ git add myfile.txt $ git commit -m "my recent changes"
$ git commit -m myfile.txt "my recent changes"
3. adds your file to the index, and then commits it. That's the one. 🐺--- ## Tracking Changes: Key Points - Files can be stored in - **working directory**: the files you can see - **staging area / index**: files about to be committed - **local repository**: the permanent record - **git status** shows the status of a repository - **git add** puts files in the staging area - **git commit** saves the staged content as a new commit in the local repository - Write short, descriptive, and imperative commit messages