Use git "log" command in another folder -


i have php files in folder (which git project). in these php file want execute "git log" folder b. folder b git project (so log different between , b).

how can shell command ?

from, man git:

you can --git-dir parameter, before passing commands.

git --git-dir /foo/bar/.git log 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -