Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 1.06 KB

git-exercise.md

File metadata and controls

28 lines (14 loc) · 1.06 KB

W3 - Git

  1. Create repository on GitHub, e.g. inspirational-quotes and clone repository to your computer

  2. Create file quotes.md locally in repository. What command will you use?

  3. Write your favourite quote in quotes.md and commit changes. What command will you use?

  4. Check repository status. What command will you use?

  5. View the log of commits. What command will you use?

  6. Push the commits to the server. What command will you use?

  7. Create new branch, e.g. education-quotes. What command will you use?

  8. Add your another favourite quote in quotes.md and commit changes. What command will you use?

  9. Swap back to the master branch. What command will you use?

  10. Add your another favourite quote in quotes.md and commit changes (this will create conflicting changes). What command will you use?

  11. Change to education-quotes branch and create pull request. What command will you use?

  12. Resolve the conflict (i.e. edit the conflict markers to match how you want the file to look like) and commit the result.

  13. Send link to your github repository