kuldipem kuldipem - 8 months ago 41
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 ?


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 !! :-)