git 常用命令 (git did not exit cleanly)
Posted caigan的技术博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git 常用命令 (git did not exit cleanly)相关的知识,希望对你有一定的参考价值。
查看本地分支:$查看远程分支:$创建本地分支:$切换分支:$创建新分支并立即切换到新分支:$删除分支:$合并分支:$创建远程分支(本地分支git push origin [name]
Git push origin master提交,但是显示的结果却是‘Everything up-to-date‘,发生问题的原因是git push origin issue5560:master 就可以把issue5560推送到远程的master分支了。
如果想把本地的某个分支test提交到远程仓库,并作为远程仓库的master分支,或者作为另外一个名叫test的分支,那么可以这么做。git push origin test:master // 提交本地test分支作为远程的master分支
$ git push origin test:test // 提交本地test分支作为远程的test分支
如果想删除远程的分支呢?类似于上面,如果:左边的分支为空,那么将删除:右边的远程的分支。
$ git push origin :test // 刚提交到远程的test将被删除,但是本地还会保存的,不用担心
添加子模块:$如:$git://github.com/soberh/ui-libs.初始化子模块:$更新子模块:$删除子模块:(分4步走哦)
git did not exit cleanly (exit code 128)
My colleague solved the problem. Steps:
-
Right click -> TortoiseGit -> Settings -> Network
-
SSH client was pointing to C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
-
Changed path to C:\Program Files (x86)\Git\bin\ssh.exe
以上是关于git 常用命令 (git did not exit cleanly)的主要内容,如果未能解决你的问题,请参考以下文章
git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法
解决git did not exit cleanly (exit code 128)
解决git did not exit cleanly (exit code 128)
Git使用之(pathspec master did not match any file(s) known to git)
Git使用之(pathspec master did not match any file(s) known to git)