1.连接远程仓库:

git remote add origin git@github.com:yourName/repositoryname.git 或者:
git remote add origin https://github.com/yourName/repositoryname.git

若出现远程origin已经存在,只需要将远程配置删除,重新添加即可,git remote rm origin。

2.创建本地分支test0

git branch test0

3.切换到本地分支

git checkout test0

3.把本地分支推送到远程

git push --set-upstream origin test0

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐