オブジェクト指向とかデザインパターンとか開発プロセスとかツールとか

satoshi's ソフトウェア開発

js






当サイトはアフィリエイト広告を利用してます。

git

ロリポップサーバーで git clone する方法

投稿日:


ロリポップのサーバーにWebアプリをインストールしようと、いつものように git clone してみました。

リモートリポジトリは Backlog に作ってるので、こんな感じでやったのですが、エラーになってしまいます。

$ git clone https://hogehoge.backlog.com/git/HOGEHOGE/hogehoge.git
Initialized empty Git repository in /home/users/0/hogehoge/web/hogehoge/.git/
error: The requested URL returned error: 401 Unauthorized while accessing https://hogehoge.backlog.com/git/HOGEHOGE/hogehoge.git/info/refs

fatal: HTTP request failed

git のバージョンが古いと、こうなるらしいです。

$ git --version
git version 1.7.1

ぐぐってみたら、このようなときは、.netrc ファイルを作ればいいらしいです。

machine hogehoge.backlog.com
login satoshis+hogehoge@gmail.com
password BacklogHogeHogeGitPassword

さくっと、git clone できました。

$ git clone https://hogehoge.backlog.com/git/HOGEHOGE/hogehoge.git
Initialized empty Git repository in /home/users/0/hogehoge/web/hogehoge/.git/
remote: Enumerating objects: 135, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 135 (delta 19), reused 135 (delta 19), pack-reused 0
Receiving objects: 100% (135/135), 371.06 KiB, done.
Resolving deltas: 100% (19/19), done.

というか、gitをもっと新しいバージョンにして欲しいのう。







-git
-, , ,

Copyright© satoshi's ソフトウェア開発 , 2024 All Rights Reserved Powered by STINGER.