遇到Working tree contains unstaged changes.的提示,先提交,然后再执行指令。即:
git commit -a -m "xxxxxxxxx"[......]
出现Git Fatal Error: info/refs not found这种报错,其实问题很简单,中心仓库(裸仓库)没有更新服务数据。
在裸仓库目录执行如下指令既可:
git update-server-info[......]
执行如下指令既可忽略git对文件权限的检查:
git config –add core.filemode false[……]
有时分支不再需要的时候,可以通过如下指令删除远程分支:
git push origin --delete <branchName>
删除tag这么用:
git push origin --delete tag <tagname>
方法来自:[……]
转自知乎作者 爱吃辣椒
原文链接:https://zhuanlan.zhihu.com/p/22666153
使用git在本地创建一个项目的过程
$ mkdir ~/hello-world //创建一个项目hello-world
$ cd ~/hello-wor[......]
这是新人比较常见的问题之一,解决办法就是,先拉取服务器最新版本,合并后,再推送更新。
参考:https://stackoverflow.com/questions/18328800/github-updates-were-rejected-because-the-[……]
downloads.atlassian.com的网站被墙了导致无法正常下载这俩压缩包,我在自己虚拟主机搭了按路径放了个。自己在本地hosts添加
107.155.187.112 downloads.atlassian.com
刷新dns缓存后,即可正常下载了,原理呢[……]