Atom-git-commit-atom,在当前atom窗格中轻松编辑git提交消息.zip

  • c5_496517
    了解作者
  • 4.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-03 06:32
    上传日期
Atom-git-commit-atom.zip,在当前atom窗格中轻松编辑git提交消息git提交原子,atom是一个用web技术构建的开源文本编辑器。
Atom-git-commit-atom.zip
  • git-commit-atom-master
  • LICENSE.md
    1KB
  • git-commit-atom.go
    3KB
  • README.md
    3.4KB
  • Makefile
    1.3KB
内容介绍
## git-commit-atom Want to use Atom's handy `COMMIT_EDITMSG` syntax highlighting? ���� Tired of waiting on Atom to open a new window with the `--wait` option? :hourglass: :sleeping: Together with [sister Atom package `git-edit-atom`](https://atom.io/packages/git-edit-atom), this Go script allows Git commit files to be conveniently edited in the current editor pane... avoiding the launch of another instance of Atom! :star2: :smirk: ![A screenshot of git-edit-atom and git-commit-atom in action together](https://thumbs.gfycat.com/BaggyFreshBoaconstrictor-size_restricted.gif) ## Prerequisites * [Sister Atom package `git-edit-atom`](https://atom.io/packages/git-edit-atom), highly recommended. ## Installation There are two steps to the installation process: * installing the Go script, and * configuring Git to use the Go script. There are two ways to install the Go script. If you have Go installed on your machine (want it? see [here](https://golang.org/doc/install)), you can use the following commands to install from source. ~~~bash go get github.com/mmore500/git-commit-atom go install github.com/mmore500/git-commit-atom ~~~ If your are installing from source, be sure your `GOBIN` is included in your `PATH`! If your `PATH` isn't already properly configured, try adding the following lines to your `.bash_profile`. ~~~bash export GOPATH=$HOME/go export GOBIN=$GOPATH/bin export PATH=$PATH:$GOPATH/bin ~~~ If you don't want to build from source, you can find pre-built executable binaries [here](https://github.com/mmore500/git-commit-atom/releases/latest). All you have to do is * download zipped folder appropriate for your operating system and architecture, * unzip it, and * toss the executable into a bin on your `PATH`. To configure Git to use the Go script, use the following command at your terminal. ~~~bash git config --global core.editor "git-commit-atom" ~~~ If you have preexisting Git repositories, you might have to use ~~~bash git config core.editor "git-commit-atom" ~~~ on them. ## Usage Once `git-commit-atom` is configured as Git's editor, Git `COMMIT_EDITMSG`, `TAG_EDITMSG`, `MERGE_MSG`, `git-rebase-todo`, and `.diff` files will open in the current pane of Atom. To complete the message editing process simply close the tab (`cmd-w` is convenient) if the Atom package `git-edit-atom` is installed or, if not, enter `quit` or `done` at the terminal. ## Implementation This project has two components: a standalone Go script that acts as the editor called by Git during the commit process and the Atom package `git-edit-atom`. When the standalone Go script is activated, it opens the `COMMIT_EDITMSG` file in the current Atom pane. When that file is closed, Atom appends a "magic marker" (`## ATOM EDIT COMPLETE##`) to the end of the `COMMIT_EDITMSG` file. The Go script, which is listening to the end of the `COMMIT_EDITMSG` file, recognizes the "magic marker" and terminates, ending the commit edit session. In addition, the Go script listens for user input at the terminal. The commit session can also be ended by entering `quit` or `done`. (This functionality allows the standalone script to function in some capacity without the Atom package in place). This project is directly inspired by AJ Foster's `git-commit-atom.sh`, [presented on his personal blog](https://aj-foster.com/2016/git-commit-atom/). It is hoped that this implementation in Go and as an Atom package will yield greater portability and reliability.
评论
    相关推荐
    • atombook:Atom.io 编辑器的 Gitbook 集成
      原子书 Atom.io 编辑器的集成。
    • Splitdown, 像 Markdown 编辑器替换一样的Ghost.zip
      Splitdown, 像 Markdown 编辑器替换一样的Ghost #Splitdown WordPress的Markdown 编辑器替换安装将插件克隆到插件目录中,通常位于内容/插件。你需要运行 git submodule init 和 git submodule update 来拉 show
    • svgeditor:SVG模式编辑器上的React
      Svg Shcema编辑器 在react svg + redux上进行的原理图编辑器。 版本转换为Immutable.js 事件处理的概念已经改变。 现在,这些组件不处理事件,而是将其转变为高级操作。 所有mouseDown,mouseUp,mouseMove事件均按...
    • mobile 注册表编辑器
      可以查看mobile手机的注册表,相当于windows上面的redegit
    • atom-git-grep:原子编辑器中的git-grep
      原子编辑器中的git grep 。 安装 apm install git-grep 如何使用 根据需要设置keybind.cson。 ' .workspace ' : ' cmd-k cmd-g ' : ' git-grep:grep ' # default git grep根始终是工作空间的当前根。
    • Atom-git-blame,Atom编辑器插件。切换Git.zip
      Atom-git-blame.zip,Plugin for Atom Editor. Toggle git-blame annotations for the current file in the gutter.怪罪,atom是一个用web技术构建的开源文本编辑器
    • livelesson-git
      git commit :打开文本编辑器以编写提交消息 git commit -m "MESSAGE" :将MESSAGE作为提交写入,而没有文本编辑器 git log :显示我们提交的日志(历史) git log --oneline :显示较短的git log --oneline提交 ...
    • git_kv_store_tutorial:探索git
      探索Git:从git init到KV商店 ...如果我们在编辑器中检出.git子目录: $ tree .git .git ├── branches ├── config ├── description ├── HEAD ├── hooks │ ├── applypatch-msg.samp
    • EditAndPublishArticle编辑器
      作者zhaoquntao,源码EditAndPublishArticle,虽然编辑和发布文章,现在很少app用到.由于公司的项目中用到了,我把这部门内容分离出来,写了一个demo分享给大家,还有一些需要完善的地方,多谢理解. gihub:/zhaoquntao/...
    • GaussDB_100_1.0.1-DATABASE-REDHAT-64bit.tar.gz
      guassdb100在redhat上安装包,单机部署的包,安装步骤请看我的文中介绍,经过大量实验搭建总结出来的文档