-
Notifications
You must be signed in to change notification settings - Fork 13
Lab 03
Zhamri Che Ani edited this page Mar 6, 2019
·
1 revision
- Open Terminal/Command Prompt.
- Go to your working directory (refer
Lab02
). - Create a new Git repository.
- Create a new file (eg. Readme.md).
- Add all the files to the staging area.
- Check the status (You should have two files: Testing.md and Readme.md in the staging area).
- Commit the files to your local Git Repository.
- Display the Git log (
$ git log
OR$ git reflog
). - Type
$ git show
. Compare and see the difference. - Type
$ git log --oneline --graph --decorate --all
. See the difference.
- Go to your GitHub Account.
- Create a new GitHub repository.
- Open your Terminal/Command Prompt.
- Add the GitHub URL to your local Git repository.
- Push all files from your local git repository to your GitHub repository.