2019年9月21日土曜日

git svn pkg-configメモ

gitでクローンと同時にサブモジュールを初期化、アップデートする
git clone --recursive url
もしくはディレクトリに入ってから
git submodule update --init --recursive

でかいものを落とそうとするとエラーになることがある
「fetch-pack: unexpected disconnect while reading sideband packet」
そんな時は最新の履歴だけ取得する
git clone --depth 1 --recursive url



ローカルのアップデート
git pull又はgit checkout


特定のブランチを落としたい
git checkout ブランチ名 


git clone -b [ブランチ名][リポジトリのアドレス]


■svn でcheckout が途中で失敗した所から再開
svn cleanup 対象のディレクトリ


■おまけ configure.acはあるがconfigureがないとき
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure


■おまけ2
pkg-config --cflags --libs xxxx
憶えておくと便利。cフラグとリンクの内容がわかる



0 件のコメント:

コメントを投稿