2013-01-01から1年間の記事一覧
Python 2.7 cd scons-local; tar -xzf scons-local-0.96.90.tar.gz rename "import as" as another name, for example aas, and mv as.py to the same name of the import uncomment the definition of strlcpy() because of conflict with that of /usr/inc…
X Windows System を使えるようにするまでのメモ インストールディスク ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/9.2/FreeBSD-9.2-RELEASE-i386-bootonly.iso VirtualBox バージョン 4.2.18 FreeBSDのインストール手順 省略 X Wind…
git cloneでリモートブランチからcloneした状態ではブランチnewの状態は見えないが、checkout -bでリモートリポジトリのブランチorigin/newに基づいて新たなブランチnewを作成すれば見えるようになる。 $ git clone http://somewhere/hoge.git $ cd hoge $ g…
ブランチnewを作成し、file1.txtをaddしてcommitする。リモートリポジトリにブランチnewをpushする。 $ git branch new $ git checkout new $ touch file.txt $ git add file.txt $ git commit -m "add file.txt" $ git push origin new
既存のリポジトリを複製して、別のリモートリポジトリに移行する場合のメモ。既存のリポジトリからbareリポジトリを作成する。サーバに転送するためにtarでもしておく。 $ git clone --mirror http://foo/bar.git hoge.git $ tar zcvf hoge.git.tar.gz hoge.…
というわけでそろそろまじめにdotfilesでも管理してみようとする。すでに~にファイルが置いてあるとgit cloneが使えない。空でないディレクトリにリモートリポジトリからpullするには以下のようにする。 $ cd ~ $ git init $ git remote add origin http://l…
git cloneやgit pullは動作するのに、git pushしたらlibcurl-4.dllがないとか言われたので、C:\Program Files (x86)\Git\bin\libcurl.dllをC:\Program Files (x86)\Git\bin\libcurl-4.dllにコピーしたら動作した。やり方があっているかは非常に怪しい。
HTTPを使ったローカルネットワーク環境でのgitリポジトリの公開方法についてまとめる。ローカルネットワーク向けなのでセキュリティやリポジトリへのアクセス速度は気にしないことにする。なお、以下の作業はDebian 7.1 (Wheezy)のインストールオプションに …