Linux
- sudo apt-get install git
- Enter git to test whether the installation is successful
- Configure git username and email
git config --global user.name 'XXXXXX'
git config --global user.email 'XXXXXX'
4. Generate public key
ssh-keygen -C'[email protected]' -t rsa
5. Upload public key
gitLab settings: Setting-->SSH KEYS
Windows
1. Download
https://git-scm.com/downloads
2. Install
-
Mac
1. Enter git in the terminal to install directly