Link to git-prompt.sh in "A1.6 Git in Bash"

オープン 初心者向け
#2,062 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
git
領域
documentation

調査の方向性

「A1.6 Git in Bash」章から始め、contrib/completion/git-prompt.sh に言及している段落を見つけてください。提案どおり、ファイルと Git のソースリポジトリへのリンクを追加し、そのうえで任意の curl スニペットをそこに置くべきか判断してください。レンダリングされた章ではファイルを簡単に見つけられ、既存のセットアップ手順が維持されている必要があります。

索引モデルが issue の本文から書いたものです。

説明

enhancement
General overview of your idea.

In the "A1.6 Git in Bash· chapter, it points you to a git-prompt.sh file in the git repository, but it doesn't provide any links. I had to go thru a bit of googling to find the file in question.

I think it would be useful to provide at the very least a link to the repository, or even directly to the file, or both. Tu turn this paragraph:

To add these to your prompt, just copy the contrib/completion/git-prompt.sh file from Git’s source repository to your home directory, add something like this to your .bashrc:

Into this:

To add these to your prompt, just copy the contrib/completion/git-prompt.sh file from Git’s source repository to your home directory, add something like this to your .bashrc:

Could even add a code snippet right after to curl the file into the right location:

curl -o ~/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh

If you think it's a good idea I can create a pull request implementing the change.

What problem will this solve?

Making the experience of setting up a bash git prompt more straightforward

Have you thought about other solutions?

No response

Do you want to help with this enhancement idea?

Yes

主要言語
CSS
スター
6.6k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

progit/progit2 のほかの issue

progit/progit2 の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。