Right-click in a target directory and click Git Bash Here to create a terminal.
- Username
$ git config --global user.name <username>
ex : git config --global user.name HappyDog - Email
$ git config --global user.email <email>
ex : git config --global user.email [email protected] - Verification
$ git config --list
- Clone a repository
$ git clone <repo> - Push a revision to your repository
- Add revised files
$ git add <file1> <file2> ... or git add . (. means all revised files) - Commit this revision
$ git commit -m "<your comment>" - Push this revision to your repository
$ git push
- Add revised files
- Pull the latest version from the repository
If you are co-working, you must retrieve the latest version in your repository before you push a revision.
$ git pull