Git
Git is a distributed version contol system that is widely used to source code management
Git Configuration¶
You can specify Git configuration settings with the git config command
## replace Nancy and Nancyteach@example.com with your username and email address.
git config --global user.name "Nancy"
git config --global user.email "Nancyteach@example.com"
To check your configuration, run the following command:
git config --global --list
Git Usage¶
Update remote repository¶
Push change in local repository to remote repository (* do not include empty files (file size is 0) otherwise cause error)
To add files to the staging area, run the following command:
git add .
To commit the changes, run the following command. Repalce message with your comment to this commit
git commit -m 'message'
Push the change from local repository to remote repository
git push
``