2016-07-15 3 views
0

私はこの問題を解決するために非常に多くの解決策を試しています。このシナリオは、私はhostgatorをホスティングしていると私はgit(ソースツリー)を使用して私のプロジェクトをクローンしたいです。したがって、私はそれらのファイルを変更すると、私は確認することができますし、プッシュ後にサイト上で更新されます。

http://www.arlocarreon.com/blog/git/push-git-repo-into-shared-hosting-account-like-hostgator/
How do I create a git repo on my shared hostgator?
私はホスティングに私のマシンRSAキーを追加し、これらの方法を試してみてくださいしています。しかし、私の本当の問題は、それをダウンロードできません。それを複製することは可能ですか?それを押すと、ウェブサイトが更新されますか?

私のオンラインWebサイトを監視し、コードを更新するためにsourcetreeを使用したい

私はいくつかのエラーを取得:

$ git clone --bare ****@******.com:public_html/.git 
Cloning into bare repository 'public_html.git'... 
Connection closed by xxx.xxx.xxx.xxx 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 


$ git clone ssh:// ****@******:public_html/ 
    Cloning into 'public_html'... 
    ssh: Could not resolve hostname ****@******:public_html: Name or service not known 
    fatal: Could not read from remote repository. 

    Please make sure you have the correct access rights 
    and the repository exists. 

誰もがこの質問の前に解決していますか?またはsourcetreeで使用することはできませんか?

答えて

0

どのようなタイプのホスティングがありますか?

http://support.hostgator.com/articles/hosting-guide/lets-get-started/how-do-i-get-and-use-ssh-access#connect

  1. あなたはHostgatorのアカウントでリポジトリにプッシュ/プルをするために、ワニをホストするためにソースツリーからのSSH接続を作成する必要があります。

ssh -p 2222 [email protected]私はMacを使用しています。

  1. ローカルマシンの.sshフォルダにid_rsaを作成します。覚えて、パスフレーズを書き留めてください!
関連する問題