При работе с git в терминале, каждый раз, когда я выполняю команду git, я всегда получаю использование, общие параметры и т. Д. Есть ли команда, которую я могу запустить, когда я запускаю git, которая покажет только то, что мне нужно увидеть, а не использование Информация? Это поможет мне увидеть больше. Спасибо.
Вот пример
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# css/
# index.html
# js/
nothing added to commit but untracked files present (use "git add" to track)
usage: git branch [options] [-r | -a] [--merged | --no-merged]
or: git branch [options] [-l] [-f] <branchname> [<start-point>]
or: git branch [options] [-r] (-d | -D) <branchname>
or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>
Generic options
-v, --verbose show hash and subject, give twice for upstream branch
-t, --track set up tracking mode (see git-pull(1))
--set-upstream change upstream info
--color[=<when>] use colored output
-r act on remote-tracking branches
--contains <commit> print only branches that contain the commit
--abbrev[=<n>] use <n> digits to display SHA-1s
Specific git-branch actions:
-a list both remote-tracking and local branches
-d delete fully merged branch
-D delete branch (even if not merged)
-m move/rename a branch and its reflog
-M move/rename a branch, even if target exists
-l create the branch's reflog
-f, --force force creation (when already exists)
--no-merged <commit> print only not merged branches
--merged <commit> print only merged branches
Я спрашиваю здесь, есть ли короткая команда, которая поможет очистить некоторые области при вводе команд, чтобы общие параметры и Определенные действия git-branch не всегда появлялись.
Редактирование с выводом из git config --get-regexp "alias"
alias.st status
alias.ci commit
alias.co checkout
alias.br branch
alias.l log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
alias.lol log --pretty=oneline --abbrev-commit --graph --decorate
alias.unstage reset HEAD
alias.staged diff --cached
alias.unstaged diff
alias.current-branch !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
alias.track checkout -t
$ ps | grep $$
3406 ttys000 0:00.09 -bash
3492 ttys000 0:00.00 grep 3406