|
Redmineプロジェクト「ソフトウェアエンジニアリング」のGitリポジトリ
|
|
□ クローン方法
|
|
git clone http://www.torutk.com:8008/git/swe.primus
|
|
|
|
◯ エラー1
|
|
ポート番号指定を抜かしてしまった場合、Nginxへアクセスすることになるが、
|
|
エラーメッセージから誤りが判断しずらい。
|
|
|
|
$ git clone http://www.torutk.com/git/swe.primus
|
|
Cloning into 'swe.primus'...
|
|
fatal: http://www.torutk.com/git/swe.primus/info/refs not found: did you run git update-server-info on the server?
|
|
|
|
|
|
〇 エラー2
|
|
clone(認証なし)は成功、ファイルを修正しローカルにコミット後、リモートにpushした
|
|
らエラー
|
|
|
|
$ git push
|
|
fatal: Authentication failed for 'http://www.torutk.com:8008/git/swe.primus/'
|
|
|
|
クローンしたリポジトリの.git/config にあるリモートのURLにユーザー名を
|
|
追記する
|
|
|
|
修正前) url = http://www.torutk.com:8008/git/swe.primus
|
|
修正後) url = http://torutk@www.torutk.com:8008/git/swe.primus
|