一些 git 笔记
Git global setup
1 | git config --global user.name "Your Name" |
Create a new repository on the command line
1 | echo "# template" >> README.md |
Push an existing repository from the command line
1 | git remote add origin git@github.com:Chasing66/template.git |
gitconfig
1 | [include] |
Syncing a fork branch from the command line
1 | git remote -v |
Push from local branch to remote main
1 | fatal: The upstream branch of your current branch does not match |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LuckyHunter's notes!