Git

Signing commits with GPG をした

Git

GitHub のヘルプ を参考に設定した。 プログラミング初心者な人に .gitconfig の設定を参考にしてもらおうと雑に渡したら user.name と email をそのまま使われてしまって、成りすましのようになってしまったことが発端。 どう防ぐのかいいか少し悩んだけど…

git archive を使ってリリース用ファイルをエクスポートする

/var/tmp/junk にファイルをエクスポートする。 $ git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -) エクスポートしたくないファイルがあるときは .gitattributes に書いて、git archive 時に --worktree-attributes オプション…

Git 使い方アレコレ

Git

構成 クライアント MacBook サーバ Linux 作業ディレクトリ myproj 初期設定 名前とメールアドレスの設定。 $ git config --global user.name "hoge" $ git config --global user.email "hoge@mail.com" 色の設定。 $ git config --global color.ui auto リ…

git clone + ssh + エラー

git clone を ssh 越しにやったらエラーが出たので対処メモ。 エラーまでの軌跡 サーバ作業: $ mkdir -p repos/test/bare $ cd repos/test/bare $ git --bare init クライアント作業: $ git clone machine:/home/user/repos/test/bare/ testdir Initialize…

Git + インストール

Git インストールでエラーが出たので対処メモ。 エラーまでの軌跡 $ wget http://kernel.org/pub/software/scm/git/git-1.6.3.2.tar.gz $ tar zxvf git-1.6.3.2.tar.gz $ cd git-1.6.3.2 $ ./configure --prefix=/usr/local/git-1.6.3.2 $ make GIT_VERSION …