kuldipem kuldipem - 3 months ago 10
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

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