jmatsu/git-memo

语言: Shell

git: https://github.com/jmatsu/git-memo

增强的Git笔记
Enhanced Git notes
README.md (中文)

增强的Git笔记

什么是Git注意到的?

Git笔记可以为提交添加注释,而无需更改其哈希值。

显示Git SCM

安装

下载git-memo,对其应用可执行权限并将其放入$ PATH

或者将bin添加到$ PATH

动机

如您所知,git-notes会与相同的命名空间注释发生冲突。

默认情况下,git-note使用提交。如果要更改名称空间,则必须输入--ref $ namespace。

此外,在运行显式命令执行之前,不会发布/检索git-notes。 例如git push $ remote refs / notes / *,git fetch $ remote refs / notes / *:refs / notes / *

如何使用

这也可以作为git-notes使用,因此您可以使用它而不是git-notes。

创建refs名称并使用它

第一次执行git-memo时,git-memo需要您的作者姓名并将其保存到config中的memo.user.name。

如果未指定--ref,则git-memo始终使用memo.user.name。

推送和取

如果您想发布笔记,请运行git memo push $ remote。

如果您想要检索所有笔记,请运行git memo fetch $ remote。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Enhanced Git notes

What's Git notes?

Git notes can add annotations to commits w/o changing their hash.

Show Git SCM

Installation

Download git-memo, apply executable permission to it and put it in your $PATH

or add bin to your $PATH

Motivation

As you know, git-notes would conflict with same namespace notes.

Default, git-note uses commits as it. You must input --ref $namespace if you would like to change namespace.

In addition, git-notes will not be published/retrieved until running explicit command excecution.
e.g. git push $remote refs/notes/*, git fetch $remote refs/notes/*:refs/notes/*

How to use

This can also work as git-notes, so you can use this instead of git-notes.

Create refs name and use it

At first time to execute git-memo, git-memo requires your author name and saves it to memo.user.name in config.

git-memo always use memo.user.name if --ref is not specified.

push and fetch

If you would like to publish your notes, run git memo push $remote.

If you would like to retrieve all notes, run git memo fetch $remote.