I want to add remote branch of my local repo?

kuldipem

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 ?

kuldipem

So, having logged in via SSH:

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

on local git repo

$ git remote add production [email protected]:mywebsite.git
$ git push production +master:refs/heads/master

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How do I push a local Git branch to master branch in the remote?

From Dev

Add a tag in remote repository without adding the repo on local

From Dev

How do I tell git to ignore my local changes, but leave the file in my remote repo?

From Dev

Why does Git show my local "pull from remote" when I push my commit to the remote repo?

From Dev

Can I hide a branch in a git repo for all remote clones?

From Dev

Should I delete the LOCAL remote/origin/master branch after I have merged it with my local master?

From Dev

Replace remote master branch with my local

From Dev

Push local new Git repo to existing remote repo as branch?

From Dev

after git rebase my local branch and remote branch have diverged

From Dev

Drop remote branch and reset local repo to match remote using GIT

From Dev

Can I add a file to my local Git repo but not push it to remote

From Dev

Can I hide a branch in a git repo for all remote clones?

From Dev

Should I delete the LOCAL remote/origin/master branch after I have merged it with my local master?

From Dev

How can I push a branch into a separate remote repo?

From Dev

fetch/merge my local branch with a certain remote branch

From Dev

How to find whether my local branch is tracking remote branch or not?

From Dev

reassign an existing remote repo to my local repo

From Dev

I want to add my editbox data to a local table?

From Dev

Apple Watch - Do I need to add a watchkit extension if I want to customise how my remote notifications are delivered?

From Dev

Is there anyway i can get to know which of my local git branch has been deleted or removed from remote

From Dev

Git: How can I merge local branch into remote master branch

From Dev

If on a local branch, how should I push that repo to remote from local repo that already exists?

From Dev

Why I can't add this remote GitHub repository to my local GIT repository as remote?

From Dev

unable to push my local git repo to the remote repo

From Dev

What is the purpose of the extra remote branch to the original repo in my forked repository?

From Dev

i want to copy a directory from my local system to a remote machine using rsync

From Dev

fatal: Could not read from remote repository. When I push my local repo to remote server

From Dev

I want to fork a repo, add a feature and keep syncing with original repo

From Dev

how to know which remote branch that my local branch is merged into

Related Related

  1. 1

    How do I push a local Git branch to master branch in the remote?

  2. 2

    Add a tag in remote repository without adding the repo on local

  3. 3

    How do I tell git to ignore my local changes, but leave the file in my remote repo?

  4. 4

    Why does Git show my local "pull from remote" when I push my commit to the remote repo?

  5. 5

    Can I hide a branch in a git repo for all remote clones?

  6. 6

    Should I delete the LOCAL remote/origin/master branch after I have merged it with my local master?

  7. 7

    Replace remote master branch with my local

  8. 8

    Push local new Git repo to existing remote repo as branch?

  9. 9

    after git rebase my local branch and remote branch have diverged

  10. 10

    Drop remote branch and reset local repo to match remote using GIT

  11. 11

    Can I add a file to my local Git repo but not push it to remote

  12. 12

    Can I hide a branch in a git repo for all remote clones?

  13. 13

    Should I delete the LOCAL remote/origin/master branch after I have merged it with my local master?

  14. 14

    How can I push a branch into a separate remote repo?

  15. 15

    fetch/merge my local branch with a certain remote branch

  16. 16

    How to find whether my local branch is tracking remote branch or not?

  17. 17

    reassign an existing remote repo to my local repo

  18. 18

    I want to add my editbox data to a local table?

  19. 19

    Apple Watch - Do I need to add a watchkit extension if I want to customise how my remote notifications are delivered?

  20. 20

    Is there anyway i can get to know which of my local git branch has been deleted or removed from remote

  21. 21

    Git: How can I merge local branch into remote master branch

  22. 22

    If on a local branch, how should I push that repo to remote from local repo that already exists?

  23. 23

    Why I can't add this remote GitHub repository to my local GIT repository as remote?

  24. 24

    unable to push my local git repo to the remote repo

  25. 25

    What is the purpose of the extra remote branch to the original repo in my forked repository?

  26. 26

    i want to copy a directory from my local system to a remote machine using rsync

  27. 27

    fatal: Could not read from remote repository. When I push my local repo to remote server

  28. 28

    I want to fork a repo, add a feature and keep syncing with original repo

  29. 29

    how to know which remote branch that my local branch is merged into

HotTag

Archive