Hello there, 
I want to setup git in my server. 
As mentioned some tutorial, i install git version in home directory 
then I initialize git repository by git init --bare in my samplerepo.git 
then i add code in .bashrc file as follow 

export GIT_BIN=${HOME}/git 
export PATH=${GIT_BIN}/bin:${PATH} 
export GIT_EXEC_PATH=${GIT_BIN}/libexec/git-core 

And i add following code in front of my ssh key 

command="if [[ "x${SSH_ORIGINAL_COMMAND}x" == "xx" ]]; then /bin/bash; else 
source ~/.bashrc; eval "${SSH_ORIGINAL_COMMAND}"; fi; " 

Finally in my local machine i create samplerepo.git and add index.html and 
git init and add remote by following successfully. 
git remote add origin 
but i am facing error while try to push "git push origin master" 
Error message: 
bash: git-receive-pack: command not found 
fatal: The remote end hung up unexpectedly 
Please advice what i am missing.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to