create .gitconfig only if not exist
This commit is contained in:
parent
d0b06f42b9
commit
5fe9b2ef34
@ -15,7 +15,7 @@ function git-config-as {
|
||||
}
|
||||
|
||||
|
||||
if [ -f "$HOME/.gitconfig" ]; then
|
||||
if [ ! -f "$HOME/.gitconfig" ]; then
|
||||
cat << ___CONF___ > "$HOME/.gitconfig"
|
||||
[alias]
|
||||
la = log --graph --full-history --date-order --all --pretty=format:'%Cred%h%Creset %ad %C(bold blue)[%an]%Creset | %C(white)%s%Creset %C(yellow)%d%Creset' --date=relative
|
||||
|
Loading…
Reference in New Issue
Block a user