红穆笔记

git cola

功能強大且界面直觀的 Git 圖形化界面工具

100% 瀏覽器本地處理 0 數據上傳

常用示例

啓動圖形界面

git cola

以修訂模式啓動圖形界面

git cola --amend

提示選擇 Git 倉庫(默認爲當前目錄)

git cola --prompt

打開指定路徑的 Git 倉庫

git cola {{[-r|--repo]}} {{路徑/到/git倉庫}}

在狀態組件中應用路徑過濾器

git cola {{[-s|--status-filter]}} {{過濾器}}

提示:花括號{{…}}是需要替換的參數(路徑、文件名等);命令只在本機終端執行,本站不保存任何輸入。

英文原文對照

展開英文說明與示例(來源 tldr-pages)

A powerful Git GUI with a slick and intuitive user interface. More information

Start the GUI

git cola

Start the GUI in amend mode

git cola --amend

Prompt for a Git repository. Defaults to the current directory

git cola --prompt

Open the Git repository at mentioned path

git cola {{[-r|--repo]}} {{path/to/git-repository}}

Apply the path filter to the status widget

git cola {{[-s|--status-filter]}} {{filter}}

命令信息

命令名git cola
用途功能強大且界面直觀的 Git 圖形化界面工具
適用平臺通用
示例數量5 條
官方文檔https://git-cola.readthedocs.io/en/latest/git-cola.html
數據來源tldr-pages(CC-BY-4.0)· 社區中文翻譯

常見問題

git cola 命令是做什麼的?

功能強大且界面直觀的 Git 圖形化界面工具

git cola 怎麼用?

頁面按場景列出了5 條常用示例:每條示例先說明用途,再給出可直接複製的完整命令(花括號裏是需要替換的參數)。

git cola 最常用的操作是什麼?

啓動圖形界面:git cola

命令裏的花括號是什麼意思?

花括號{{…}}表示需要替換成你自己的值,例如路徑、文件名;同名參數方括號(如 [-C|--directory])表示可選寫法。