免费git服务器以及使用过程中遇到的问题
2013-07-12 19:26
666 查看
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
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
相关文章推荐
- 免费git服务器以及使用过程中遇到的问题
- 阿里云----------阿里云服务器使用过程中遇到的各种奇葩问题以及解决渠道
- Git 使用过程中遇到的问题以及解决办法
- vs2008发布项目,放到服务器上使用的全过程及其遇到的问题
- git&gerrit 使用过程中遇到的问题及解决方法
- 使用MFC过程中遇到的问题以及解决方法(二)
- 使用Git 过程中遇到的几个问题及其解决方案
- Git使用过程遇到的问题
- Ubuntu(17.04)使用过程中遇到的问题以及解决方法
- 使用Linux过程中遇到的问题以及解决方案
- 3D商城服务器开发过程中遇到的问题,原因以及解决方法。。。
- Linux安装与配置samb服务器的过程以及遇到的问题
- file_put_contents以及file_get_contents的用法与在使用过程中遇到的问题(PHP学习)
- 【Git使用详解】Egit使用过程中遇到的问题及解决办法
- eclipse使用技巧以及开发安卓程序过程中遇到的问题
- JavaMail IMAP 和JavaMail Pop3 简介以及使用过程遇到的问题总结
- 关于SpringMVC4使用过程中的路径问题,我们经常遇到的Controller未执行以及执行了之后出现404
- Cocoa pods的安装使用以及过程中可能会遇到问题的汇总
- 搭建简单FTP服务器以及过程中容易遇到的几个问题(一)
- file_put_contents以及file_get_contents的用法与在使用过程中遇到的问题(PHP学习)