Sometimes when trying to resolve a merge, you may want to keep one file instead of the other. You don’t need to open up the files and fix the potentially hundreds of conflicts, you just want to choose the one you want and be done with it. Sa... 続きを読む
Usually ignoring files is quite simple with Git. However, you may need to quickly hide changes in a file, perhaps for an entire development session or other reasons. Luckily there’s a simple way around this, thanks to some clever manual divi... 続きを読む
dev, git1.5 系列で実際の patch を送る際の command 例。 patch file のうちひとつの名前が 0001-new-feature.patch という前提ね。細かい説明は http://d.hatena.ne.jp/janus_wel/20090210/1234441680 に。 remote から変更した分の patch を作る git format-... 続きを読む
git の version が 1.5 系列の場合。本当に最小から & command の羅列だけど適宜必要なところから作業してください & 細かい説明は以下に書いたので参照してみてください。 http://d.hatena.ne.jp/janus_wel/20090120/1232481948 http://d.hatena.ne.jp/janus_w... 続きを読む
Posted: 2008年10月25日 | Filed under: ドキュメント | Tags: CheatSheet, Git, チートシート, 翻訳 | バージョン管理システムには、会社でも自宅でもSubversionを使うことが多いのですが、Git、Mercurialといった分散バージョン管理システムもぼちぼち使い始... 続きを読む
Users of Git are hopefully aware that a git pull does a git fetch to pull down data from the specified remote, and then calls git merge to join the changes received with your current branch’s work. However, that may not always be the best ca... 続きを読む
dev, gitgit に関する文書。っても全部 http://git-scm.com/documentation にあるのなんだけど。とりあえず全部読んでおくべきなんだけど個人的にこの順番で読むと理解が進むと思う順に挙げる。てかつくづく導入の敷居が高い tool だな。と思ったけど習得曲線の... 続きを読む
dev, gitsvn に比べると細かい作業ができるんだけど色々覚えなきゃいけないことも多い。 TortoiseSVN から入ったおれにはちとつらいぜ。てか tutorial とか読んでても管理がしたいだけなのに仕組みについて説明されても…、と思わないでもないんだけど管理って... 続きを読む
Robin Rosenberg introduced me to the simplest method of creating a new git branch without any ancestors: $ echo ref: refs/heads/newbranch > .git/HEAD $ git branch master [...] $ git commit -m 'creating newbranch' $ git branch master * newbran... 続きを読む
gibak 0.3.0 (backup tool using Git): OSX support, extended attributes, bugfixes gibak is a backup tool based on git. Since gibak builds upon the infrastructure offered by Git, it shares its main strengths: speed: recovering your data is faste... 続きを読む
Abstract Quick introduction to git internals for people who are not scared by words like Directed Acyclic Graph. Storage In simplified form, git object storage is "just" a DAG of objects, with a handful of different types of objects. They are... 続きを読む
Lately I’ve been acting as the unofficial Git consultant for Skribit, usually in response to @Stammy saying something on Twitter along the lines of “Hey, git just did something totally nonintuitive and now I can’t figure out what to do nex... 続きを読む
http://gweezlebur.com/2009/01/19/my-git-workflow.html 一人でcommitしてると、あえてgitである必要は全くないんだけど、そろそろここのLarger teamのworkflowのようにtopic branchをチケット単位で切るワークフローに変えて使っていこうかな。 gitはbranch作... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む
Vim user? Emacs true believer? Don’t feel left out – we’ve got Gist support for you too! Vim users can grab Gist.vim (GitHub repo) while Emacsers will enjoy gist.el (which I maintain). In Vim: :Gist In Emacs: M-x gist-buffer They both supp... 続きを読む
Aliases With aliases, you can avoid typing the same commands over and over again. Aliases were added in Git version 1.4.0. Table of contents: Simple 'ci' By adding the following section to .git/config, you can write git ci instead of git comm... 続きを読む
http://vimperator.org/trac/wiki/Vimperator/Source を base に maling list で怒られたことのまとめ。 git pull もしくは git clone git://vimperator.org/liberator.git 変更する。機能追加の場合は NEWS にどういった機能を追加したか書いとけとのお達し。 ... 続きを読む
ソースコード管理システムの機能として、あらゆるファイルの履歴を完全に記録するというものがある。 普通に考えてこれは便利な機能である。だが・・・ 間違えて「公開すべきでないファイル」を公開リポジトリに追加してしまった場合、頭を抱えることになる。 ... 続きを読む
git/github を使い始めてほぼ1週間ぐらい。よくできた分散SCMだなぁ、とおもう。とくに rebase とか stash なんか、svk でももちろんできるけどこういう機能が最初からついてるのは素敵。 で、github にプロジェクトをおいておくと fork ボタンがあってすぐに ... 続きを読む
複数人で開発をやろうとすると、昨日どんな変更が入ったかとかを確認するのはよくやると思うんですが、そんなときに以下のようなコマンドをよく使っています。 git log -p HEAD@{3.days.ago} gitdifflogという名前でpathの通ったところにいれて使ってます。 続きを読む