A
A
Alexander Degtyarev2016-08-01 09:46:44
git
Alexander Degtyarev, 2016-08-01 09:46:44

.gitconfig not working correctly?

[alias]
  co = checkout
  ci = commit
  st = status
  br = branch
  coo = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
  type = cat-file -t
  dump = cat-file -p

alias do not work when including this file in the root directory of the project, what's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Movchan, 2016-08-01
@ErichAltheim

What file? To which directory?
gitconfig can be in three places:

/etc/gitconfig
~/.gitconfig
/path/to/project/dir/.git/config

Upd. Read this .
Upd2. Here is what is specific to your question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question