Exercises
Last updated
Was this helpful?
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”
Which command(s) below would save the changes of myfile.txt to my local Git repository?
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"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.
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
Was this helpful?
Was this helpful?
