-
configure the user which will be used by git
-
Of course you should use your name
git config --global user.name "Example Surname"
-
Same for the email address
git config --global user.email "your.email@gmail.com"
- set default so that all changes are always pushed to the repository
git config --global push.default "matching"
- set default so that you avoid unnecessary commits
git config --global branch.autosetuprebase always
> git config --global color.ui true
> git config --global color.status auto
> git config --global color.branch auto
> git config --list
- Initialize the Git repository
- for the current directory
git init
> git status
- add all files to the index of the
- Git repository
git add .
- commit your file to the local repository
git commit -m "Initial commit"
- show the Git log for the change
git log
> git remote add origin [URL From Step 11]
> git push origin master
> git add <specify files here>
> git commit -m "commit status"
> git push origin master
That's all!