git repo - Retrieve git repository name during git push at server level -
i new git, understanding naive. in perforce can p4 describe
, , can give me info need changelist.
here when git push origin master
, want know repository commits being pushed during pre-receive hook @ git server level.
i have seen option basename git rev-parse --show-toplevel
, happens @ client level. want similar @ server level.
is possible?
git remote -v
tell remote repository(ies) pull , push coming from.
example output:
git remote -v origin git@github.com:null/python.git (fetch) origin git@github.com:null/python.git (push)
the name of repository null/python.
also, unless i'm misunderstanding you, shown repository files being pushed during push:
to git@github.com:null/python.git * [new branch] ruby-version -> ruby-version
again, null/python name of remote repository.
Comments
Post a Comment