터미널에서 git으로 작업 할 때 git 명령을 사용할 때마다 항상 사용법, 일반 옵션 등을 얻습니다.보고 싶은 항목 만 표시하는 git 명령을 실행할 수 있습니까? 사용 정보가 아닌? 그러면 시각적으로 더 많이 볼 수 있습니다. 고맙습니다. 명령을 입력 할 때 일부 부동산을 정리 도움이 짧은 명령이있을 경우 여기 git terminal 최소 디스플레이
는 예를 들어# 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
입니다 내가 여기 해달라고 그래서 일반 옵션과 특정 자식 분기의 행동은 항상 않을 것 나타나다. 자식 설정 --get-정규 표현식 "별칭"에서 출력
편집
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
git 명령을 수행하면 언제든지이 메시지가 표시됩니까? 깨진 별명이나 무언가 같은데. 예제를 게시 할 수 있습니까? –
@AbeVoelker - 터미널에서 명령을 실행하는 동안 은폐 옵션을 원합니다. – pertrai1
명령을 입력하기 위해 입력 한 명령은 무엇입니까? 'git branch'의 잘못된 사용법처럼 보입니다. 이것은 나쁜 시스템 별명 또는 git 별명 일 수 있습니다. 다음 명령의 출력을 게시하십시오 :'alias'와'git config --get-regexp '별칭 * "' –