config
Last updated
Was this helpful?
Last updated
Was this helpful?
[!NOTE|label:references:]
ubuntu
[!NOTE|label:references:]
dependencies
[!NOTE|label:references:]
osx
git-core
git-doc
git-info
others
install
[!NOTE|label:release package:]
result
pacakges:
[!TIP|label:check apt package bin path without install:]
bins : /usr/local/bin
git-core : /usr/local/libexec/git-core
or $ git --exec-path
diff-highlight : /usr/share/doc/git/contrib/diff-highlight/diff-highlight
git-prompt.sh : /usr/local/libexec/git-core/git-prompt.sh
git-completion : /usr/share/bash-completion/completions/git
git-info : /usr/local/share/info
[!NOTE|label:locations]
system
<GIT_DIR>\etc\gitconfig
<GIT_DIR>/etc/gitconfig
system example
%LOCALAPPDATA%\Programs\Git\etc\gitconfig
/usr/local/etc/gitconfig
global
%USERPROFILE%\.gitconfig
$HOME/.gitconfig
local
<git-repo>\.git\config
<git-repo>/.git/config
portable
%PROGRAMDATA%\Git\config
-
windows
osx
edit config file
list all with scope
list origin
list single scope only
list local only
list global
list system
[!NOTE|label:references:]
attributes:
bold
,dim
,ul
,blink
,reverse
,italic
,strike
,no-ul
,no-reverse
,no-dim
, ..colors: ANSI 256-colors ( 0~255 ). specify 24-bit RGB values as hex, like #ff0ab3. color names, like red, green, ...
configure:
[!NOTE|label:references:]
color.branch.<slot>
:
current
, local
, remote
, upstream
, plain
color.diff.<slot>
:
context
, meta
, frag
, old
, new
, plain
, commit
, whitespace
,
oldMoved
, newMoved
, oldMovedDimmed
, newMovedDimmed
, oldMovedAlternative
, newMovedAlternative
, oldMovedAlternativeDimmed
, newMovedAlternativeDimmed
contextDimmed
, oldDimmed
, newDimmed
, contextBold
, oldBold
, newBold
color.decorate.<slot>
:
branch
, remoteBranch
, tag
, stash
, HEAD
color.grep.<slot>
context
, filename
, function
, lineNumber
, match
, matchContext
, matchSelected
, selected
, separator
color.interactive.<slot>
:
prompt
, header
, help
, error
color.status.<slot>
:
added
, updated
, changed
, untracked
, branch
, nobranch
, localBranch
, remoteBranch
, unmerged
color.remote.<slot>
:
hint
, warning
, success
, error
color.grep.<slot>
:
context
, filename
, function
, lineNumber
, column
, match
, matchContext
, matchSelected
, selected
, separator
list color.*
config
[!TIP|label:see also:]
autocorrect
[!NOTE|label:references:]
[!NOTE]
$ ssh -vT git@github.com -p 22
using https instead of ssh first
setup credential
create the credential file
to read the credentials file
GIT_USERNAME
and GIT_ASKPASS
[!NOTE|label:references:]
env.GIT_ASKPASS
core.askPass
SSH_ASKPASS
via config
via environment
[!TIP]
GIT_ASKPASS
must be a executable script
[!NOTE|label:references:]
commit.template
usage
core.editor
use vim ( the ubiqutos text editor ) as Git's default editor
init.defaultBranch
override the default branch name for new repositories
core.autocrlf
[!TIP|label:see also:]
checkout windows-style, commit unix-style line endings
checkout as-is, commit unix-style line endings
checkout as-is, commit as-is
pull.rebase
core.fscache
& core.symlinks
enable file system caching
enable symbolic links
core.fsmonitor
enable experimental built-in file system monitor
__git_ps1
[!NOTE|label:localtion]
osx:
$(brew --prefix git)/etc/bash_completion.d/git-prompt.sh
[!NOTE|label:references:]
result
[!TIP]
ld: archive member '/' not a mach-o file
[!NOTE]
xCode
|
|
| JENKINS-56897 - Support general purpose authenticated git operations in Pipeline](https://issues.jenkins.io/browse/JENKINS-56897#comment-364399)
|