タグ

Gitに関するo_showのブックマーク (187)

  • A Better UI (CLI) for git | Jon Saints

    By Jon Saints - 29 Jan 2012 I recently read 3 UI books Design of Everyday Things About Face Don’t Make Me Think. The books did make me think. A lot. A lot about a tool I use everyday… git http://git-scm.com. Git is sweet tool. But, the UI could use some love. The UI can be confusing and inconsistent for newbies. In fact, even after three years of using git, there are commands I still find confusin

    o_show
    o_show 2012/01/31
    GitのUIに対する提案と、実際にそれを提供するラッパーであるGUM/git stage、git unstageはいいかもなぁ
  • Preparing for the next cycle

    I've been re-reading them to check their sanity for the past several days, and they all look more or less ready to go. I expect that the next cycle after version 1.7.9 is released will be a short one, just like this cycle leading to 1.7.9 has been. One of the potentially contentious topic is a change to the git merge command. In the versions up to the upcoming 1.7.9, when the changes from historie

    o_show
    o_show 2012/01/25
    git mergeがコンフリクトを起こさなかった場合、コミットメッセージを入力するタイミングが無いが、将来的にエディタ起動をデフォルトにするらしい(今でも--editオプションで強制できるけど)
  • Git Magic - Preface

    Git is a version control Swiss army knife. A reliable versatile multipurpose revision control tool whose extraordinary flexibility makes it tricky to learn, let alone master. As Arthur C. Clarke observed, any sufficiently advanced technology is indistinguishable from magic. This is a great way to approach Git: newbies can ignore its inner workings and view Git as a gizmo that can amaze friends and

    o_show
    o_show 2012/01/24
  • GitHub - oscardelben/git-diff-grep: Run grep across git diffs history

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - oscardelben/git-diff-grep: Run grep across git diffs history
    o_show
    o_show 2012/01/24
  • Gitを使っていて zsh: no matches found: HEAD^ などと言われない方法 - 工夫と趣向と分別と。

    Gitを使っていると、今のcommitなし!とgit reset --soft HEAD^したり、abc1234以降のコミットをパッチ化したい!とgit format-patch abc1234^したくなることがよくあるわけだが、この^はzshの拡張グロブ有効化時(setopt extended_glob)はメタ文字として働くため、そのまま入力すると標記のエラーで怒られてしまう。 いちいちエスケープするのは面倒だと思うのだが、ぐぐってみても正面から対処している人があまりいないようなので紹介しておくと、拙作のgit-escape-magicを使えば良い。リンク先のドキュメントの通り、ふつうに入力するだけで、いい感じに文脈を見て自動エスケープしてくれる。 このように、zle(zshラインエディタ)をいじると結構おもしろいことができる。 たとえば、3つ上のディレクトリを参照するために../../

    o_show
    o_show 2012/01/24
  • gitにでかいバイナリファイルを入れるとどうなるか - 西尾泰和のはてなダイアリー

    ふと気になったのでgitにでかいバイナリファイルを入れたらどうなるのか調べてみた。 自分の発表が録画された112メガのaviファイルを実験対象に使う。 cp まずはgitを使わない普通のcpの時間を測っておく。 real 0m0.744s user 0m0.001s sys 0m0.179s git add git addにはコピーの10倍以上の時間がかかる。 real 0m9.339s user 0m7.989s sys 0m0.490s git commit git commitには意外と時間が掛からなかった。 real 0m0.055s user 0m0.002s sys 0m0.031s git clone 先ほど動画ファイルをcommitしたリポジトリをcloneしてみる。単純なファイルコピーに比べると3倍弱時間がかかる。 real 0m1.943s user 0m0.932s

    gitにでかいバイナリファイルを入れるとどうなるか - 西尾泰和のはてなダイアリー
    o_show
    o_show 2012/01/20
    addした時にindexのためにblobオブジェクトを作成(データを圧縮してハッシュを計算)し、commit時はそのblobオブジェクトを指す(treeオブジェクトを指す)コミットオブジェクトを作るだけなので、この計測結果はあってそう
  • The Real Difference Between Git and Mercurial

    I have a friend who is quite proficient with git but has recently started a job that uses mercurial for their development and he’s been learning how to use it. I used this opportunity to do some research into the history of git and mercurial and why they’ve turned out to be such different (yet similar) tools. I will start off by saying that I am a fan of git but my intention is not to show that on

    o_show
    o_show 2012/01/20
    git stashやgit commit --amendをMercurialでやりたい場合はextensionを利用する。/Mercurialはreflogがない、でいいのかな。
  • Git In The Trenches:

    o_show
    o_show 2012/01/15
    架空の企業を舞台にしたGitの解説本。オンラインで読める。リポジトリはここにある(LaTex) https://github.com/cbx33/gitt
  • Writing good commit messages

    Good commit messages serve at least three important purposes: To speed up the reviewing process. To help us write a good release note. To help the future maintainers of Erlang/OTP (it could be you!), say five years into the future, to find out why a particular change was made to the code or why a specific feature was added. Structure your commit message like this: From: https://git-scm.com/book/ch

    Writing good commit messages
    o_show
    o_show 2012/01/14
    良いコミットメッセージには 1. レビュープロセスのスピードアップ/2. 良いリリースノートを書く/3. 将来のメンテナが変更や機能追加の理由を調べられるようにする、という効果がある。
  • 温馨提示

    国务院令第292号《互联网信息服务管理办法》和《非经营性互联网信息服务备案管理办法》规定,所有对中国大陆境内提供服务的网站都必须先进行ICP备案。 如何备案 您需前往腾讯云ICP备案控制台,根据系统提示填写相关的主体信息和服务信息,上传证件照片及核验单等备案材料。审核通过以后,腾讯云会以短信和邮件的形式通知您。 备案教程 备案期间网站还能正常访问吗 首次备案:未成功办理备案的网站均不能上线访问 接入备案:在腾讯云接入备案成功后,才可在腾讯云开展网站内容服务,未接入前请继续使用其他已备案过的云服务商 了解详情 接入备案是否影响其他地方的备案 接入备案过程中,暂不会影响您的网站访问。接入备案只是增加一个服务商,不会影响您在其它服务商的备案数据,您可同时使用两家服务商的服务器 了解详情

    o_show
    o_show 2012/01/13
    中国版GitHub?
  • How to Use Multiple GIT Accounts

    o_show
    o_show 2012/01/13
  • Git SCM Wiki

    OBSOLETE CONTENTThis wiki has been archived and the content is no longer updated. Please visit git-scm.com/doc for up-to-date documentation. Git Wiki Homepage Welcome to the Git wiki web site. This wiki is a community effort to provide an accurate source of information for all things related to Git. Make sure to visit the Git website (http://git-scm.com) for current updates and information. The Gi

    o_show
    o_show 2012/01/13
    Linusが2007年にGoogle社でやったGitに関する講演のテキスト書き起こし。
  • GitHub - c9s/App-gh: GitHub Command-line Utility.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - c9s/App-gh: GitHub Command-line Utility.
    o_show
    o_show 2012/01/12
    githubをコマンドラインから扱う
  • Git で日々の共同作業やリリース作業をサポートする git-daily を作りました | GREE Engineering

    こんにちは。インフラの sotarok です。 先日から Git 関連の話をしている通りですが、社内で Git を使い始めています。 今日は、Git を使った日々の開発〜リリースまでのフローや、そうしたものの運用と、それをサポートするために作ったツール git-daily の紹介をしたいと思います。 ソフトウェア開発とウェブ開発の違い いやウェブ開発も広義のソフトウェア開発なのですが、ここでいうソフトウェア開発とは、クライアントアプリケーションやライブラリのようなものを指すと思ってください。 実際、ウェブ開発をしている方は感じていることだとは思いますが、両者の開発フローはかなり異なるものです。もちろん社風や開発の方針等によって色々あるとは思いますが、主に次のような特徴が挙げられると思います: ソフトウェア開発 アプリケーションはクライアントで動作する リリース間隔は比較的長く、次のバージョ

    Git で日々の共同作業やリリース作業をサポートする git-daily を作りました | GREE Engineering
    o_show
    o_show 2012/01/12
  • 多人数開発で Git を使う場合の環境構築 | GREE Engineering

    こんにちは、インフラやってる sotarok です。最近、社内でも「sotarok は そーたろっくと読む」という誤解が広がっていましたので改めて自己紹介しますと、sotarok と書いて「そーたろー」または「そーたろー・けー」と読みます。ロックしてないのでよろしくお願いします。 今日は、Git の話です。 GREE ではずっと Subversion を使っているという話を、以前開発環境の話をしたときに少し触れたことがあります。Subversion での運用方法も、GREE では割と面白い運用をしているのでその話もどこかでしたいのですが、まあ、それは今回は置いておきましょう。どこかで聞いてください。 GREE もその昔 CVS から Subversion に移ったのですが、時代は流れるもので、いよいよ Git 化という流れがきています。Subversion と Git の違いを今更あえて挙

    多人数開発で Git を使う場合の環境構築 | GREE Engineering
    o_show
    o_show 2012/01/12
  • Rails のプラグインを subtree として管理する - ドレッシングのような

    (2010.02.05 追記) read-tree する前に ours ストラテジで merge しなきゃダメだったようなので、その手順を追加した。 下のエントリではプラグインを submodule として管理する方法をメモした。 今回扱っているリポジトリは僕だけでなく他社の人 (それも git に慣れてない人) と一緒に弄るものなので、submodule を使うと clone するところから大変なことが分かった *1。 そこで、submodule の代わりに subtree merge と呼ばれる方法を採用することに変更した。これは、プラグインのリポジトリをブランチの中で管理し、master ブランチへ read-tree というコマンドでマージする方法。 restful_authentication を例に説明する。まず、家を remote リポジトリとして追加する。 $ git r

    Rails のプラグインを subtree として管理する - ドレッシングのような
    o_show
    o_show 2012/01/11
    マージのoursストラテジと、サブツリーマージ
  • git - the simple guide - no deep shit!

    create a new repository create a new directory, open it and perform a git init to create a new git repository. checkout a repository create a working copy of a local repository by running the command git clone /path/to/repository when using a remote server, your command will be git clone username@host:/path/to/repository workflow your local repository consists of three "trees" maintained by git. t

    o_show
    o_show 2012/01/10
  • Home // Think Like (a) Git

    Git shouldn't be so hard to learn. When you're just getting started, something as straightforward as a merge can be terrifying. It can take a long time to really become comfortable using some of Git's more advanced features. (It took me a year or two.) Once people achieve some level of Git enlightenment, they tend to make statements of the form 'Git gets a lot easier once you realize X' -- but tha

    o_show
    o_show 2012/01/10
  • Gitのルートディレクトリへ簡単に移動できるようにする関数 - Qiita

    function git-root() { if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then cd `pwd`/`git rev-parse --show-cdup` fi }

    Gitのルートディレクトリへ簡単に移動できるようにする関数 - Qiita
    o_show
    o_show 2012/01/06
  • Gitで不適切なコミットメッセージを削除した公開リポジトリを作る - 2012-01-05 - ククログ

    分散バージョン管理システムのGitには様々なサブコマンドがありますが、その中の1つである git filter-branch を使用すると、過去のコミットを完全に無かった事にしてしまうなどの強力なコミット履歴の編集が可能となります。大きなリポジトリの特定のディレクトリ以下の内容をコミット履歴付きで別の小さなリポジトリとして取り出したり、ファイルの中に書かれていた生のパスワードを履歴の中から消去したり、というのはよく紹介される例です。 このエントリでは別の例として、コミットメッセージだけを後からまとめて修正する手順をご紹介しましょう。 元々非公開なプロジェクトとして開発を進めていたものを、公開リポジトリに移動したいとなると、やはり機密情報は完全に取り除いておく必要があります。リポジトリに格納されているファイルそのものの内容の編集方法については上記の例で解説されていますが、それ以外の場合として

    Gitで不適切なコミットメッセージを削除した公開リポジトリを作る - 2012-01-05 - ククログ
    o_show
    o_show 2012/01/06
    git filter-branch