VersionControlSystem > Git

公式

git clone https://github.com/git/git.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

revision 番号が欲しい

x264 を見ると以下の処理をしていた。
% git-rev-list  HEAD | wc
    859     859   35219
  • 更新
    git submodule update --remote  <module_path>
    git commit <module_path>
この数字を使って r859 とかすると良さそう。

git log

git gc

gitignore

revision 番号が欲しい

コミット取り消し

x264 を見ると以下の処理をしていた。 この数字を使って r859 とかすると良さそう。

git で配布してるソフト

ブログ

参考

関連


Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes