设置git push和pull的默认远程分支

您要求从远程 'origin' 拉取,但是未指定一个分支。因为这不是当前 分支默认的远程仓库,您必须在命令行中指定一个分支名。

原文:

i've been using github from a relatively short period, and I've always used the client to perform commits and pulls. I decided to try it from the git bash yesterday, and I successfully created a new repo and committed files.

today I did changes to the repository from another computer, I've committed the changes and now I'm back home and performed a git pull to update my local version and i get this:

设置git push和pull的默认远程分支

git branch --set-upstream-to=origin/master master
git pull

 

 

你可能感兴趣的:(学习笔记,Git,Java)