免费git服务器以及使用过程中遇到的问题

1. git rm *,git pull会先git fetch后再git merge,更安全的做法是git fetch修改后再push;git remote rm origin

2. https://bitbucket.org/ 为US免费git服务器,现在可以支持5个工程?没确定;

    https://hehao3344@bitbucket.org/hehao3344/mkit.git

    https://hehao3344@bitbucket.org/hehao3344/p2p.git

3. 如果git pull出现类似于如下错误

$ git pull
Password:
You asked me to pull without telling me which branch you
want to merge with,and'branch.master.merge'in
your configuration file does not tell me, either.Please
specify which branch you want to use on the command lineand
 try again (e.g.'git pull <repository> <refspec>').
See git-pull(1)for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:

[branch"master"]
remote=<nickname>
merge=<remote-ref>

[remote"<nickname>"]
url=<url>
fetch=<refspec>

See git-config(1)for details.

我们可以通过修改配置文件 .git/config

添加如下几行:

[branch "master"]
    remote = origin
    merge = refs/heads/master

这时候,pull时会查找到正确的url;


如果不配置,则需要打如下命令

git pull origin master;


3 个地址:

git clone https://hehao3344@bitbucket.org/hehao3344/p2p-server.git

git clone https://hehao3344@bitbucket.org/hehao3344/p2p-client.git

git clone https://hehao3344@bitbucket.org/hehao3344/mkit.git




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

iowin888

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值