Skip to content
Zhamri Che Ani edited this page Mar 6, 2019 · 1 revision

Lab03: Remote Repository

Task 1

  1. Open Terminal/Command Prompt.
  2. Go to your working directory (refer Lab02).
  3. Create a new Git repository.
  4. Create a new file (eg. Readme.md).
  5. Add all the files to the staging area.
  6. Check the status (You should have two files: Testing.md and Readme.md in the staging area).
  7. Commit the files to your local Git Repository.
  8. Display the Git log ($ git log OR $ git reflog).
  9. Type $ git show. Compare and see the difference.
  10. Type $ git log --oneline --graph --decorate --all. See the difference.

Task 2

  1. Go to your GitHub Account.
  2. Create a new GitHub repository.
  3. Open your Terminal/Command Prompt.
  4. Add the GitHub URL to your local Git repository.
  5. Push all files from your local git repository to your GitHub repository.