Article Directory
Choose your own corresponding system to install
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’
-
Generate public key
- ssh-keygen -C ‘[email protected]’ -t rsa
-
Upload public key
gitLab- The settings are as follows: Setting-->SSH KEYS
Windows
Mac
- Enter git in the terminal to install directly