Answer the question
In order to leave comments, you need to log in
Why is gitconfig not working?
Good afternoon.
I want to use 2 git accounts on my machine.
Found info that you need to create several .giconfig files.
Created .gitconfig in the root of the home directory
[user]
name = serii
email = [email protected]
[includeIf "gitdir:~/Bludelego/"]
path = ~/Bludelego/.gitconfig-bludelego
[push]
default = simple
[alias]
l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
[user]
name = Bludelego
email = [email protected]
Answer the question
In order to leave comments, you need to log in
It does not work, apparently because the file needed to be given a normal name.
True, it is not entirely clear why creating files by hand if all the necessary data can be set with commands through the terminal or in general in the Git client if you use Sourcetree for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question