NAME
git-client - Git Client Wrapper
DESCRIPTION
Wrapper around the real git provide additional functionality.
GIT_CONFIG Override
Allows for .gitconfig descent override files up until the $HOME directory. All descent .gitconfig files will be honored, although files closest to the git working directory will take precedence. All these descent .gitconfig files take precedence over --global config files, which take precedence over --system files in case of duplicate settings. And --local config files take precedence over all these descent files and all other --global and --system files.
-O <OPTION>
Populates GIT_OPTION_* environment variables on server side. These ENV settings will be available to all the server side hooks, including the pre-* hooks. Note that for this to work, the git ssh server must have "AcceptEnv XMODIFIERS" enabled in its sshd_config.
DEBUG
Sets DEBUG environment on server side to match the same numeric value as set on the client invoker.
INSTALL
Just make sure this program comes BEFORE the real "git" program in the PATH.
For example, as super user, you could do this:
[root@deploy-host ~]# wget -N -P /usr/local/bin https://raw.githubusercontent.com/hookbot/git-server/master/git-client
[root@deploy-host ~]# chmod 755 /usr/local/bin/git-client
[root@deploy-host ~]# ln -s -v git-client /usr/local/bin/git
[root@deploy-host ~]#
Or as normal user, you could do this:
[root@deploy-host ~]$ mkdir -p ~/bin
[root@deploy-host ~]$ wget -N -P ~/bin https://raw.githubusercontent.com/hookbot/git-server/master/git-client
[root@deploy-host ~]$ chmod 755 ~/bin/git-client
[root@deploy-host ~]$ ln -s -v git-client ~/bin/git
[root@deploy-host ~]$ grep 'PATH=$HOME/bin' ~/.bash_profile || echo 'export PATH=$HOME/bin:$PATH' | tee -a ~/.bash_profile
[root@deploy-host ~]$
SYNOPSIS
cd ~/src/github/project
git config --file ../.gitconfig user.email 'hookbot@github.com'
git config --list
PURPOSE
Allows you to use many different .gitconfig files within each folder of git repos. If there is no .gitconfig within the directory descent structure, then it will behave exactly like the normal git.
AUTHOR
Rob Brown <bbb@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2016-2025 by Rob Brown <bbb@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.