Skip to content

Sp0ozy/first

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Git Commands

The exercises are to practice basic Git commands. Follow the instructions below to complete the assignments.

Working in your own GitHub repository (1 point).

  1. Clone the remote Github repository.
  2. Create a file called music.txt.
  3. Enter the name of your favorite artist in music.txt.
  4. Add music.txt to the staging area.
  5. Check the state of the staging area with git status.
  6. Commit with the message "adding music.txt".
  7. Check out your commit with git log.
  8. Create another file called food.txt.
  9. Enter the name of your favorite food in food.txt.
  10. Add food.txt to the staging area.
  11. Check the state of the staging area with git status.
  12. Commit with the message "adding food.txt".
  13. Remove the music.txt file.
  14. Add this change to the staging area.
  15. Check the state of the staging area with git status.
  16. Commit with the message "removing music.txt".
  17. Rename food.txt to meals.txt.
  18. Add this change to the staging area.
  19. Check the state of the staging area with git status.
  20. Commit with the message "renaming food.txt to meals.txt".
  21. Update the remote GitHub repository with the local commits.

Collaborative work in a GiHub repository (1 point).

  1. Find a classmate to collaborate on the assignment.
  2. Invite each other as collaborators to the repositories of each other.
  3. Clone the remote Github repository of your classmate.
  4. Add your favorite food to meals.txt in a new line.
  5. Add this change to the staging area.
  6. Commit with the message "adding my favorite food".
  7. Update the remote GitHub repository with the local commit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published