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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -