2014-01-11 38 views
0

总是当我尝试提交commit时,git询问我的存储库的arbitary locationgit总是要求任意位置

我想为那个迪尔常数arbitary location,所以在将来我不必手动回购地址。

如何解决?

enter image description here

回答

2

您需要创建要更改推到一个默认remote回购。

git remote add <remote_name> <remote_url> 

远程URL也可以设置为本地路径。

然后先推过程中设置这个偏僻作为默认:

git push -u <remote_name> 

在未来你可以git push,它会被推到远程。