gitの小ネタ
niw:
SausalitoでBostonからのゲストを迎えておいしいお寿司を食べてきました。
ま、全然それは関係ないんですが、久しぶりのブログとして軽くgitの小ネタ的なものを。
gitのコマンドショートカット
git commitとか長いですよね。そういう場合は、~/.gitconfigに次のように書き足しましょう。[alias] ci = commitこれで
git ciでgit commitと同様の動きをします。カラフルに
生のgitは地味ですよね。そういう場合はこうします。
[color] diff = auto status = auto branch = autoあのマージのグラフが見たい…
いくつかのGUIツールだと、綺麗なマージ状況を表示する機能があって羨ましいですよね。そういう場合はこうします。
[alias] gr = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'こうすると、
git grでこんなグラフを表示できます。
以上、gitの小ネタ集でした。いちおう、gitについてはまた今度ちゃんと書こうかと思ってます。
other
|
33 notes (#)
|
Comments
|
11/11/04 Fri 20:44:32
($)
|
author:syoichi
e-mail:tsuyuhara-syoichi@hotmail.co.jp
author:syoichi
e-mail:tsuyuhara-syoichi@hotmail.co.jp
-
sitelog reblogged this from syoichi
-
naritabryan liked this
-
nayakiyo liked this
-
gonyogonyo56 liked this
-
mil-memory reblogged this from non117
-
ken0205 reblogged this from syoichi
-
kske reblogged this from syoichi
-
bigwest liked this
-
hidkick reblogged this from syoichi
-
showyou reblogged this from syoichi
-
krbysh liked this
-
joodle reblogged this from non117
-
interginza reblogged this from non117
-
bctake6 liked this
-
kfumiya reblogged this from syoichi and added:
SausalitoでBostonからのゲストを迎えておいしいお寿司を食べてきました。 ま、全然それは関係ないんですが、久しぶりのブログとして軽くgitの小ネタ的なものを。 gitのコマンドショートカット git...
-
yoakeduki reblogged this from c610
-
phelrine liked this
-
phelrine reblogged this from non117
-
non117 reblogged this from syoichi
-
c610 reblogged this from syoichi
-
c610 liked this
-
athsear liked this
-
naozine reblogged this from zengame
-
mamemomonga reblogged this from hsmt
-
interglacial reblogged this from layer13
-
hiyosi-log liked this
-
atm09td reblogged this from syoichi
-
knnr reblogged this from syoichi
-
hsmt reblogged this from syoichi
-
layer13 reblogged this from syoichi
-
zengame reblogged this from syoichi
-
parc-box reblogged this from syoichi
-
syoichi reblogged this from niw
-
niw posted this

