R
R
R02021-06-25 23:09:24
git
R0, 2021-06-25 23:09:24

What does this error mean?

Learn Git via githowto.com/ru/aliases
stuck on aliases like

git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph - -date=short"

warning: alias.hist has multiple values
​​error: cannot overwrite multiple values ​​with a single value. Use a regexp, --add or --replace-all to change alias.hist.

It says that the alias hist already exists? And where? And how do I change the request so that the hist alias is set? Do I need to find a file that has alias.hist and make changes there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-06-26
@BorLaze

Strange - my alias normally started and works.
Try to add

hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
directly to a file ~/.gitconfig, to a section[alias]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question