config
installation
[!NOTE|label:references:]
ubuntu
from source
[!NOTE|label:references:]
dependencies
[!NOTE|label:references:]
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
location
[!NOTE|label:locations]
SCOPE | WINDOWS | UNIX-LIKE |
---|---|---|
system |
|
|
system example |
|
|
global |
|
|
local |
|
|
portable |
| - |
get locations
windows
osx
edit config file
list
list all with scope
list origin
list single scope only
list local only
list global
list system
get from all configure
colors
[!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
list
color.*
config[!TIP|label:see also:]
gitconfig
help
credential
[!NOTE]
environment failed to $ ssh -vT git@github.com -p 22
$ ssh -vT git@github.com -p 22
using https instead of ssh first
setup credential
create the credential file
to read the credentials file
with GIT_USERNAME
and GIT_ASKPASS
GIT_USERNAME
and GIT_ASKPASS
[!NOTE|label:references:]
env.GIT_ASKPASS
core.askPass
SSH_ASKPASS
GIT_ASKPASS with user and password | JENKINS-56897 - Support general purpose authenticated git operations in Pipeline](https://issues.jenkins.io/browse/JENKINS-56897#comment-364399)
via config
via environment
[!TIP]
GIT_ASKPASS
must be a executable script
default configuration
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
__git_ps1
[!NOTE|label:localtion]
osx:
$(brew --prefix git)/etc/bash_completion.d/git-prompt.sh
add to bash_completion.d
tig
[!NOTE|label:references:]
result
troubleshooting
[!TIP]
ld: archive member '/' not a mach-o file
ld: archive member '/' not a mach-o file
[!NOTE]
xCode
Last updated