Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
Last active March 17, 2021 06:07
Show Gist options
  • Save xiaoysh8/817857e46837b17d4bee127e0e13d3aa to your computer and use it in GitHub Desktop.
Save xiaoysh8/817857e46837b17d4bee127e0e13d3aa to your computer and use it in GitHub Desktop.
git config
git init
git config --global user.name "Your Name"
git config --global user.email "Your Email Address"
git config --global color.ui auto
git remote add origin https://github.com/LearningLaravel/Laravel.git
git push -u origin master
//提交远程新分支
git push --set-upstream origin dev
//下载无关分支
git pull --allow-unrelated-histories
//指定远程分支,以更上传
git branch --set-upstream-to=origin/master
git remote add origin https://github.com/xiaoysh8/tutorial.git
//删除远程分支
git push origin --delete test
git remote get-url --all origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment