首页
Javascript
Html
Css
Node.js
Electron
移动开发
小程序
工具类
服务端
浏览器相关
前端收藏
其他
关于
公司注册

git输入不显示,只有光标在闪的问题

2018年12月26日 发布 阅读(3876) 作者:Jerman

当在git操作log,如git log后,然后非正常退出,如使用CTRL+C退出,这个时候git输入命令就不会显示了,只有光标,这时怎么办?

解决
1、使用Backspace后退键删除光标前的所有内容,然后输入reset,然后回车
2、关了git bash,重新启一个git bash

  1. $ usage: git [--version] [--help] [-C <path>] [-c name=value]
  2. [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  3. [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
  4. [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  5. <command> [<args>]
  6. These are common Git commands used in various situations:
  7. start a working area (see also: git help tutorial)
  8. clone Clone a repository into a new directory
  9. init Create an empty Git repository or reinitialize an existing one
  10. work on the current change (see also: git help everyday)
  11. add Add file contents to the index
  12. mv Move or rename a file, a directory, or a symlink
  13. reset Reset current HEAD to the specified state
  14. rm Remove files from the working tree and from the index
  15. examine the history and state (see also: git help revisions)
  16. bisect Use binary search to find the commit that introduced a bug
  17. grep Print lines matching a pattern
  18. log Show commit logs
  19. show Show various types of objects
  20. status Show the working tree status
  21. grow, mark and tweak your common history
  22. branch List, create, or delete branches
  23. checkout Switch branches or restore working tree files
  24. commit Record changes to the repository
  25. diff Show changes between commits, commit and working tree, etc
  26. merge Join two or more development histories together
  27. rebase Reapply commits on top of another base tip
  28. tag Create, list, delete or verify a tag object signed with GPG
  29. collaborate (see also: git help workflows)
  30. fetch Download objects and refs from another repository
  31. pull Fetch from and integrate with another repository or a local branch
  32. push Update remote refs along with associated objects
版权声明:本站文章除特别声明外,均采用署名-非商业性使用-禁止演绎 4.0 国际 许可协议,如需转载,请注明出处
  • Unable to negotiate with 106.52.160.162 port 22: no matching host key type found. Their offer: ssh-rsa fatal: Could not read from remote repository.

    Unable to negotiate with 106.52.160.162 port 22: no matching host key type found. Their offer: ssh-rsa fatal: Could not read from remote repository.

    发布:2021-11-09 阅读(4389)

  • 使用git hooks(post-receive)实现简单的远程自动部署

    使用git hooks(post-receive)实现简单的远程自动部署

    发布:2019-06-05 阅读(5514)

  • linux下设置git(pull,push等)免密码操作

    linux下,设置git免密码操作

    发布:2019-06-04 阅读(3065)

  • git cherry-pick使用指南

    **git cherry-pick**可以选择某一个分支中的一个或几个commit(s)来进行操作。例如,假设我们有个稳定版本的分支,叫v2.0,另外还有个开发版本的分支v3.0,我们不能直接把两个分支合并,这样会导致稳定版本混乱,但是又想增加一个v3.0中的功能到v2.0中,这里就可以使用cherry-pick了,其实也就是对已经存在的commit 进行再次提交.

    发布:2018-12-28 阅读(3135)

  • 找回Git中丢失的Commit(git如何撤消reset操作)

    在使用Git的过程中,有时候会因为一些误操作,比如reset、rebase、merge等。特别是在Commit之后又执行了`git reset --hard HEAD`强制回滚本地记录以及文件到服务器版本,导致本地做的修改全部恢复到Git当前分支的服务器版本,同时自己的Commmit记录也消失了。碰到这种情况,不要慌,我们在Git上做的任何操作都只是在原来之前的操作上做修改,并且会被记录下来保存,也就是说无论你做了什么,对于Git来说都可以进行回滚操作。

    发布:2018-12-28 阅读(2582)

  • git bisect 命令教程

    它的原理很简单,就是将代码提交的历史,按照两分法不断缩小定位。所谓&amp;quot;两分法&amp;quot;,就是将代码历史一分为二,确定问题出在前半部分,还是后半部分,不断执行这个过程,直到范围缩小到某一次代码提交。

    发布:2018-12-27 阅读(2286)

  • git输入不显示,只有光标在闪的问题

    当在git操作log,如`git log`后,然后非正常退出,即使用`CTRL+C`退出,这个时候git输入命令就不会显示了,只有光标,这时怎么办?

    发布:2018-12-26 阅读(3876)

  • .gitignore文件配置不生效

    .gitignore文件配置不生效

    发布:2018-12-24 阅读(3729)

  • git修改当前项目用户

    git修改当前项目用户

    发布:2018-12-11 阅读(2197)

  • Git修改最近一次已经提交了的commit及push

    Git修改最近一次已经提交了的commit及push

    发布:2018-12-11 阅读(1839)

  • git常用命令

    git常用命令,git查看某个文件的修改记录,分支备注

    发布:2018-11-30 阅读(2939)

  • Git 分支 - 分支的新建与合并

    发布:2018-11-27

  • git diff忽略某些文件,不比较

    通过设置git-diff driver,结合.gitattributes文件,使git diff命令忽略某些目录。例如我们只希望看到比较src目录,不希望看到比较dist目录

    发布:2018-10-26 阅读(6408)

  • git教程(写的比较详细,适合初学者,值得阅读)

    学习这本书的目的是让你了解版本控制,并且尽可能快速简单的掌握 Git。但是和另外一些关于介绍版本控制的图书不一样,阅读这本书并不需要你有很专业的 IT 或者电脑背景知识,它也面向那些编程的初学者,软件构架师,或者是项目经理。在技术方面你也不需要有很多专业知识,我们会以循序渐进的方式帮助你来理解版本控制和掌握 Git。

    发布:2018-10-19 来源:git-tower.com

  • git打包成tar\zip文件

    git如何打包增量文件?

    发布:2018-05-30 阅读(5894)

  • github push免密码

    github push时免密码

    发布:2015-01-05 阅读(1776)