Skip to content

Instantly share code, notes, and snippets.

@itherunder
Created December 6, 2021 15:09
Show Gist options
  • Save itherunder/2b5c1a3c73a4ba54a8ab291665a12789 to your computer and use it in GitHub Desktop.
Save itherunder/2b5c1a3c73a4ba54a8ab291665a12789 to your computer and use it in GitHub Desktop.
git init cmd
git init
git config user.email "liaozhou98@qq.com"
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