Top > Git
TITLE:Git – the stupid content tracker 
[[VersionControlSystem]] > [[Git]]
#contents


* 公式 [#official]

//- http://git.or.cz/
- http://git-scm.com/downloads
>
git clone https://github.com/git/git.git

* 解説 [#t20ca3e8]

- サルでもわかるGit入門
--  http://www.backlog.jp/git-guide/
- https://www.atlassian.com/ja/git/tutorial
- Git の仕組み@こせきの技術日記
--  http://koseki.hatenablog.com/entry/2014/04/22/inside-git-1
--  http://koseki.hatenablog.com/entry/2014/06/11/inside-git-2

- http://www8.atwiki.jp/git_jp/ 入門
- http://www.slideshare.net/bleistift/git-7402004 Gitことはじめ
- commitとpushしかできない人のためのgithubの使い方まとめ
--  http://myuon-myon.hatenablog.com/entry/20121114/1352906438

* ツール [#tool]

- [[SoureTree]]
- [[GitKraken]]
- [[Fork]]
- [[TOWER]]


* git tag [#tag]
- git tag 使い方
-- http://cmdnote.net/notes/35/items
// --  http://transitive.info/article/git/command/tag/

* git config [#config]

-  git push時に表示されるwarning: `push.default is unset...`の意味と解決方法
--  http://qiita.com/yaotti/items/a8e9f5de8dcca81d3214

* git commit [#commit]

- https://git-scm.com/book/ja/v1/[https://git-scm.com/book/ja/v1/Git-%E3%81%AE%E3%81%95%E3%81%BE%E3%81%96%E3%81%BE%E3%81%AA%E3%83%84%E3%83%BC%E3%83%AB-%E5%AF%BE%E8%A9%B1%E7%9A%84%E3%81%AA%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B8%E3%83%B3%E3%82%B0 Git のさまざまなツール - 対話的なステージング]

** コミット取り消し [#t747c6c3]

- githubにgit pushした変更の取り消し
--  http://blog.toshimaru.net/git-pushgithub/
- コミットの書き換え - コミットを捨てる
--  http://www.backlog.jp/git-guide/stepup/stepup6_3.html

* git pull [#pull]
-  gitの小ネタ (git レポジトリを作った場所では、これしないと git pull 出来ない)
--  http://d.hatena.ne.jp/rofi/20110204/1296815915
 % git config branch.master.merge refs/heads/master
 % git config branch.master.remote origin

あと、大抵説明にあるけど、コレも。
 % git push -u origin master

- git pull -f がないので。
 $ git fetch
 $ git reset --hard origin/branch_name

* git merge [#merge]

- githubでfork元から最新を取り込む
--  http://qiita.com/ongaeshi/items/6493eec3ce156b83fb9c

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

* git push [#j7b03327]

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

- git push -f をやめて --force-with-lease を使おう
--  https://qiita.com/wMETAw/items/5f47dcc7cf57af8e449f

* git submodule [#submodule]

-  git submoduleの更新
--  http://rochefort.hatenablog.com/entry/20110410/p1
 $ git submodule foreach 'git pull origin master'
 $ git submodule update

- Gitのサブモジュールで発生した変更を親リポジトリで無視する2つの方法
--  https://dev.classmethod.jp/articles/git-submodules-ignore-dirty/
 $ git config --file=.gitmodules submodule.submod-repo.ignore dirty # submod-repo は必要に応じて

- git statusしたときに(modified content)が発生したので対応した時の記録
--  https://qiita.com/kota-miyasaka/items/b15336b3b91cf6386cab
 $ git checkout -- .

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

* git log [#log]

- [http://tobysoft.net/wiki/index.php?git%2F%A5%B3%A5%DF%A5%C3%A5%C8%A5%ED%A5%B0%A4%F2%BD%A4%C0%B5%A4%B9%A4%EB%CA%FD%CB%A1 git/コミットログを修正する方法]@tobysoft.net

* git gc [#y4f3e01f]

- git gcの自動実行はいつ行われるのか
--  http://blog.shibayu36.org/entry/2015/07/06/103000

* gitignore [#z2674d8b]

- グローバルで.gitignoreを適応する
--  http://qiita.com/katsew/items/5cade12fa743a2f31f25
- https://github.com/github/gitignore
* revision 番号が欲しい [#rev]

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

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

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


* git で配布してるソフト [#p515c13e]

- http://www.videolan.org/developers/x264.html
 git clone git://git.videolan.org/x264.git
- http://www.videolan.org/developers/vlc.html
 git clone git://git.videolan.org/vlc.git

* 参考 [#x217debb]
- http://b4.x0.com/hiki/?Git Gitメモ

- WindowsでGit(オチだけ読めばいいです)
--  http://uzulla.hateblo.jp/entry/2012/07/30/015015

-  git で並列 fetch するオプションAdd Star
-- https://www.hsbt.org/diary/20210203.html
>
git fetch -j 
 [fetch]
     parallel = 8

* 関連 [#rel]

- [[GitHub]]

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