A
A
AlexTest2014-02-19 19:46:53
git
AlexTest, 2014-02-19 19:46:53

How to find the creator of a folder in GIT?

In SVN, using the command:
svn log -r 1:HEAD --limit 1 url_of_requested_folder_in_repo
You can find out when and by whom the folder was created.
Is there a similar command in GIT that allows you to find out: when and by whom a folder was created?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-02-19
@AlexTest

you need to find the first commit for the files in that directory and get its author:

git log --pretty=format:"%an" --reverse path/to/directory | head -1

S
sl_bug, 2014-02-19
@sl_bug

git log --reverse -- path/to/directory | head -n 10

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question