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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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