Clone hosting folder for bitbucket

Asked

Viewed 115 times

0

How do I clone a folder that’s on my hostgator hosting for a Bitbucket project and after the changes go up to the hostgator again? It is possible?

Note: I have ssh access to the hostgator and can access the ssh terminal normally.

  • You might help: https://gist.github.com/rdeavila/6503795

1 answer

3


The simplest way to transfer a repository from one host to the other is to:

  1. Clone the repository you want to move on your machine
  2. Create an empty repository on the other host, in the case of Bitbucket
  3. Add the new repository remote to the repository you cloned on your machine

    git remote -add [remote name] [URL]

Remember, there should already be at least one "origin" since you cloned the repository in step 1, so don’t use that name.

  1. I sent everything there with:

    git push [name-remote] -all

Browser other questions tagged

You are not signed in. Login or sign up in order to post.