Get hands on with Git Commands
Get hands-on practice with Git commands.
We'll cover the following
Until this point, we have provided instructions for you to follow. Let’s make things a little more challenging. We have created an exercise so you can get your feet wet in the pool of Git Commands, so to speak. Don’t worry if you cannot complete this on your own; we have provided hints for you below each task. But remember, practice makes perfect.
Should you choose to accept, your mission is to practice all the commands learned in this chapter in the terminal provided at the bottom of this lesson.
Best of luck!
Try it Now
Practice what you learned in this chapter by performing the following tasks:
- Clone a repository.
Clone a repository that you created in the last lesson from GitHub
.
- Change into the cloned directory.
-
Modify the README.md.
- Add a new heading,
## ad-hoc Ansible commands
to the file. The file will look like this:
- Add a new heading,
# ansiblecontains Ansible ad-hoc commands and playbooks## ad-hoc Ansible commands
- Add the changes to the repository.
Try to do this on your own. You can look at the hint in case you are stuck.
- Commit the changes with a message.
Commit the change made in the previous section with the message 'added ad-hoc header'
.
You will notice that the Git Configuration is not set up. You will have to provide the user name and email. After that, commit the changes again.
- Push the changes.
Lastly, push the changes to the remote repository. Verify the changes in the GitHub repository.
Get hands-on with 1300+ tech skills courses.