kuldipem kuldipem - 1 year ago 76
Git Question

I want to add remote branch of my local repo?

I want to put my local git project in production server (Linux multi hosting account of go-daddy).
Is it possible to add my production server as my remote branch ?

Answer Source

So, having logged in via SSH:

$ mkdir mywebsite.git
$ cd mywebsite.git
$ git init --bare

on local git repo

$ git remote add production git@myserver.com:mywebsite.git
$ git push production +master:refs/heads/master

I got my solution,but thnx all of you !! :-)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download