projectlocker に git プロジェクトをセットアップして、自分の git ファイルをプッシュします。次に、git プロジェクトを初期化し、ファイルをステージングしたディレクトリに移動しました。最後に、次のコマンドでプロジェクトを projectlocker にプッシュしようとしました。
$ git push git-smichaels@free5.projectlocker.com:helloworld.git
次のエラーが生成されます。
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly
このように押し込もうとして何か問題がありますか?
この構文を使用している誰かの例を見つけました:
git remote add myproject 'git-myloginname@projectlocker.com:myproj.git'
git push myproject +master:master
" " を使用する必要がremote add
ありますか? 上記のように URL に直接プッシュできないのはなぜですか?