git
commonslok
这个作者很懒,什么都没留下…
展开
-
push到github时,每次都要输入用户名和密码的问题
在github.com上 建立了一个小项目,可是在每次push 的时候,都要输入用户名和密码,很是麻烦 原因是使用了https方式 push 在termail里边 输入 git remote -v 可以看到形如一下的返回结果 origin https://github.com/yuquan0821/demo.git (fetch) origin https://转载 2015-12-28 16:33:08 · 2119 阅读 · 0 评论 -
git安装使用 (一)
在linux上安装git,首先输入git查看系统是否已经安装git。 $ git The program 'git' is currently not installed. You can install it by typing: sudo apt-get install git 当然,你在git官网上下载一个再安装也行http://git-scm.com/ 在mac上安装原创 2015-12-25 14:08:07 · 907 阅读 · 1 评论 -
git的常用命令(二)
git的常用命令其实也挺多的 : ) 从工作区working directory提交文件到暂存区stage的时候用的命令是 $ git add LICENSE 如果只有一个文件就写一句代码就能提交了,如果是多个文件LICENSE1,LICENSE2,LICENSE3那应该怎么方便快捷的提交文件到暂存区stage呢?这将用到git add的参数,当然,git add可以提交一个目录里的文件。原创 2015-12-25 15:50:43 · 795 阅读 · 0 评论 -
You have not concluded your merge (MERGE_HEAD exists) git拉取失败
You have not concluded your merge (MERGE_HEAD exists) git拉取失败 今天获取git线上仓库代码报了这个错误: zhangzhi@moke:~/code/ktsg-api$ git pull You have not concluded your merge (MERGE_HEAD exists). Please, commit y转载 2016-02-23 10:47:48 · 18536 阅读 · 0 评论