-
Create remote library:
-
Create remote library address alias:
- Git remote -v displays aliases of all remote addresses
- Git remote add
-
Git push [alias] [branch]
-
Git clone
-
Effect:
- Download the complete remote library to the local
- Example Create the origin remote address alias
- Initialize the local library
-
-
Team member Invitation:
- Archived failureUpload againcancelArchived failureUpload againcancel
-
Remote warehouse content pull:
-
pull=fetch+merge
-
Pull in two steps:
- Git fetch [remote repository alias] [remote branch name]
- Git merge: git merge
- You can use git checkout to checkout what you want to pull from your local repository
-
Git pull [remote library address alias]
-
-
Collaboration across teams:
-
External aid operation:
- Foreign aid pull down, local operation, and delivery to their own remote warehouse
-
Warehouse original administrator operations:
- To view:
- Dialogue and exchange:
- Code review:
- Submit merge:
- Pull changes from remote libraries to your local repository
-
-
SSH Login (Optional, not common)
- Go to the current user’s home directory: CD ~
- SSH directory: rm -rvf.ssh
- Run the following command to generate the SSH key directory: ssh-keygen -t rsa -c [email protected]
- Go to the. SSH directory: cd.ssh
- View the file list: ls-LF
- Run cat id_rsa.pub to view the contents of the id_rsa.pub file
- Copy the id_rsa.pub file, log in to GitHub, click user profile picture →Settings→SSH and GPG keys
- New SSH Key
- Enter the copied key information
- Back to Git bash create a remote address alias: Git remote add origin_ssh [email protected]: atguigu2018ybuq/huashan. Git
- Push files to test