Sunday, February 9, 2014

GIT: How to git push to remote repo

You can update remote git using below method:

step 1: add remote git
 $git remote add <remote-git-nick-name> <remote git address>

ex: git remote  add rgit brmeena@remotegit.com:/var/remotegit/.git

step 2: git push rgit master


Note: run below command on remote server:
  git config receive.denyCurrentBranch ignore


No comments:

Post a Comment