This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do you include a new file to your Git index?
Using the 'git include' command
Using the 'git add' command
Using the 'git commit' command
What does the -m tag do to your commit?
The -m tag isn't a valid tag in git
The tag modifies your commit if you forgot to add something
This tag allows you to add a message to your commit
Which of these is a good example of a commit message?
Add feature to alert admin for new user registration...
added new feature
Add name, age, height, weight, and salary labels with corresponding text boxes and more over a Submit Button to the webpage to ensure the user is clear on what is being added...
What is a way to fix one of your past commits without needing to make a new commit?
Deleting the file and creating a new one in its place with the correct changes.
Utilizing the Git 'amend' tag
Revert the commit and make a new one
How do you choose between Git reset and Git checkout to recover a lost file?
Git checkout can recover a file you might have accidentally deleted. Git Reset, will recover a file you deleted using the 'git rm' command
Always use git checkout because it is the safer option
Create a new file with the same name and use Git reset
When should you avoid changing a past commit?
Avoid amending commits that other developers have based their work on
When you want to add a new file to your commit
When you want to change the not most recent commit.
You must answer all questions before checking your work.
Was this page helpful?