Git使用点滴记录
来源:互联网 发布:javascript库 编辑:程序博客网 时间:2024/05/16 12:01
问题及解决方案list:
your configuration specifies to merge with the ref ‘master’ from the remote, but no such ref was fetched.
出现在,没有push而进行pull操作的时候
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as ‘master’.出现在clone后首次push,这是因为Git找不到要提交的版本。
解决方法git push origin master
将某个目录或者文件移除出版本控制
git rm 命令参数-n --dry -run Don’t actually remove any file(s). Instead, just show if they exist in the index and would otherwise be removed by the command. -r Allow recursive removal when a leading directory name is given. --cached Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.
解决方法
git rm -r -n --cached "bin/" //-n:加上这个参数,执行命令时,是不会删除任何文件,而是展示此命令要删除的文件列表预览。git rm -r --cached "bin/" //最终执行命令. git commit -m" remove bin folder all file out of control" //提交git push origin master //提交到远程服务器
git 错误 fatal: This operation must be run in a work tree
由于创建一个裸仓库,在该仓库无法进行任何git操作,所以抛出错误.
解决方法
在该仓库目录下,新建文件夹,进入该文件夹,执行如下命令:1. touch Readme2. git init3. git add Readme4. git commit -m 'initial commit' Readme
you are on a branch yet to be born
在运行 git checkout -f时出现。因为当前主分支下还是空的。git checkout -b mastergit update-ref HEAD mastergit push --set-upstream origin master
无法定位程序输入点 libiconv 于动态链接库 libiconv-2.dll 上
解决方法
手动将“C:\ProgramFiles(x86)\Git\bin\”目录中的文件“libiconv-2.dll”复制到”C:\ProgramFiles(x86)\Git\libexec\git-core”目录下。
0 0
- Git使用点滴记录
- GIT使用点滴
- CVS 使用点滴记录
- vim 使用点滴记录
- vim使用点滴记录
- 记录学习的点滴(Git入门)
- [SCM] CVS 使用点滴记录
- MSFlexGrid控件使用点滴记录
- PowerDesigner使用点滴记录-1
- git 点滴
- 记录点滴
- 点滴记录
- 记录点滴
- 点滴记录
- 记录点滴
- 点滴记录
- 记录点滴
- 记录点滴
- 常用英语单词
- 希尔排序(shellsort)
- 单向加密算法
- golang 本地连接mssql sql server
- 多边形和圆的面积并
- Git使用点滴记录
- UVA - 10129 Play on Words (欧拉回路)
- ZeroMQ研究与应用分析
- GitHub整理开源工程
- session多服务器共享的方案梳理
- UVA 624 CD(01背包/记录路径)
- testr for openstack
- unity3d的playmaker插件使用教程,一、电灯开关
- Linux下查看文件和文件夹大小