Exercises
Exercise 1 - Choosing a Commit Message:
Which of the following commit messages would be most appropriate for the last commit made to git.txt?
“Changes”
“Added line ‘Torvalds said "I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'git'.""
“how git was named--citation from Torvalds”
Exercise 2 - Committing to Git
Which command(s) below would save the changes of myfile.txt to my local Git repository?
git commit -m "my recent changes"
Exercise 3 - Committing Multiple Files
The staging area can hold changes from any number of files that you want to commit as a single snapshot.
Add some text to git.txt noting your decision to consider use git to help your work
Create a new file I_love_git.txt with your initial thoughts about git
Add changes from both files to the staging area, and commit those changes.
Exercise 4
bio Repository
Create a new Git repository on your computer called bio.
Write a two-line biography for yourself in a file called me.txt, commit your changes
Modify one line, add a third line
Display the differences between its updated state and its original state
Last updated