Last active
March 17, 2021 06:07
-
-
Save xiaoysh8/817857e46837b17d4bee127e0e13d3aa to your computer and use it in GitHub Desktop.
git config
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 --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