Top > Git

VersionControlSystem > Git

公式

解説

ツール

git tag

git config

git commit

コミット取り消し

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 で配布してるソフト

参考

関連


Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes
Last-modified: Mon, 12 Feb 2024 00:38:08 JST (68d)