Git

LT概要「GitとMercurialのリポジトリ構造の違いと歴史改変について」SCMBootCamp in Tokyo

SCMBootCamp in Tokyo 開催しました。KPT公開。 - うさぎ組にて手ぶらLTをしたので資料はないが、内容を軽くまとめておく。 GitとMercurialの比較 Git Mercurial リポジトリ commit objectのグラフと、branchのHEAD,tagなどの参照で出来ている。 commit obje…

clone元以外のリポジトリとの同期

remote repository追加 remote repositoryをgit remote addで追加。 GitTowerの場合Refs->Add New Remote Repositoryから追加。 remote branch情報の取得 remote repositoryに対してgit fetchで、remote repositoryのremote branch一覧を取得出来る。 clone…

githubで複数ユーザを使い分ける

githubというかgitosisはsshの鍵でユーザを判定します。 設定の仕方はhelpでも見てくだしあ。 Redirecting... Redirecting... Redirecting... 自分のgithubユーザとして色んなマシンからgithubを使う場合は簡単です。 上記の説明のとおりに公開鍵を追加して…

git rebaseでよくやること

ticket1というtopic branchで作業していて、 ひとつ前のcommitに対する修正をしたくなったとする。 git checkout HEAD^でひとつ前に戻って、修正してcommit,commit場合によってはcommit --amend。 この時のhash値(1234ab等とする)をコピーしておいて、 git c…