Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

-u

1
2
3
[-u | --set-upstream]
git push -u origin main
git push ---set-upstream origin main

设置默认推送分支

origin

1
git remote add origin http:xxxxx

origin 是提交远程的命名 也可以自己命名比如 ppp o

–help

比如git push

1
git push --help

git 全局配置修改

第一种 vi

1
vi ~/.gitconfig

第二种

1
git config --global --edit

评论