It's raining cats and dogs.

無駄なことなんてないはず

git

httpsでのgit cloneをやめてssh over https portでcloneした話

以前gitのバージョンが1.7.10以下の環境でhttpsを使ってgithubからcloneするエントリを書いた。 http://tadasy.hateblo.jp/entry/20130903/1378209883 基本的にはコレで問題無さそうで、個人の環境をとして使うのであれば特に問題はないのだけれど、共有の環…

https経由でgit cloneしたら「error: RPC failed; result=18, HTTP code = 200iB」的な怒られ方をした時の話

git

まえにhttps経由でとあるリポジトリを古い環境にcloneした時のことを書いた。http://d.hatena.ne.jp/tadasy/20130904/1378299371この時に確かもう一つハマっていたことがあって、それが表題の件。 $ git clone https://github.com/sampleProject/hoge.git Cl…

githubにブランチをpushしたら ERROR: Repository not found. と怒られた

今日も怒られました。 とあるプロダクトのgithubリポジトリにアカウントを追加してもらって、masterをcloneして、ローカルでブランチ切って、アレコレ修正してコミットした。 問題無さそうなのでgithubのリポジトリにリモートブランチ作って、pull reqするか…

error: SSL certificate problem, verify that the CA cert is OK.

git

ちょっと古い環境(CentOS5以下)でgit cloneでとあるプロジェクトをhttps経由で持ってこようとしたら表題のようなエラーがでた。 $ git clone https://github.com/sampleProject/hoge.git . Cloning into .... error: SSL certificate problem, verify that t…

git clone で error: The requested URL returned error: 401 Authorization Required while accessing と怒られた

git

今新しく環境を作っていて、githubからとあるプロジェクトをcloneしようとしたら、表題の件で怒られた。 $ git clone https://github.com/sampleProject/hoge.git Initialized empty Git repository in /path/to/hoge/.git/ error: The requested URL return…

gitでignore

git

.gitignoreというファイルを作ればよい たとえばlogディレクトリの全部のログファイルをignoreしたいのなら log/.gitignoreファイルを作ってコミットしたらいい。 内容は *.logとかでおk んで % git add log/.gitignore % git commit -a としたらローカルの…

Githubを使いたいのでGitを入れる

git

男は黙ってmacports sudo port install git-core で疲れ果てた。 macportsはインストールを待つのにつかれるんだもの。