VersionControlSystem > Git

公式†

解説†

ツール†

git tag†

git config†

git commit†

git commit -p†

コミット取り消し†

git pull†

  • gitの小ネタ (git レポジトリを作った場所では、これしないと git pull 出来ない)

あと、大抵説明にあるけど、コレも。

% git push -u origin master
  • git pull -f がないので。
    $ git fetch
    $ git reset --hard origin/branch_name

git merge†

git remote add fork_master git://github.com/ranguba/rroonga.git
git fetch fork_master
git merge remotes/fork_master/master

git push†

# ~/.gitconfigに追加
$ git config --global alias.push-f "push --force-with-lease"

git submodule†

  • 更新
    git submodule update --remote  <module_path>
    git commit <module_path>

git log†

git gc†

gitignore†

revision 番号が欲しい†

x264 を見ると以下の処理をしていた。

% git-rev-list  HEAD | wc
    859     859   35219

この数字を使って r859 とかすると良さそう。

git hooks†

git で配布してるソフト†

参考†

  • 20250225 時間がかかっていた git status を Trace2 で計測しながら10倍速くした話

関連†