git push到远程仓库的新branch

git push -u origin <branch>

其中 -u--set-upstream 的意思,就是将目前分支和某个远程分支绑定。如果不用 -u 则是一次性的 push / pull。

如果是添加新的 repo,则用 git remote:

git remote add origin_2 https://github.com/user/repo.git

你可能感兴趣的:(Git,git)