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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -