Created
December 6, 2021 15:09
-
-
Save itherunder/2b5c1a3c73a4ba54a8ab291665a12789 to your computer and use it in GitHub Desktop.
git init cmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git config user.email "[email protected]" | |
git config user.name "itherunder" | |
git remote add origin https://github.com/itherunder/xxx | |
# git pull <远程服务器名(就是git remote -v的结果)> <远程分支名>:<本地分支名>) | |
git pull origin main:main | |
# 或者可以用fetch + merge 的方式代替pull | |
# git fetch <远程服务器名> <远程分支名> | |
git fetch origin main | |
# git merge <HEAD> <分支名> | |
git merge FETCH_HEAD origin/main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment