履歴: プログラミング/git

各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 5 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます

日時タイトル文字数追加削除内容差分基準
2017/2/8 20:39:50プログラミング/git 最新版3,351+1 -1表示差分—
2017/2/8 20:39:50プログラミング/git 3,357+33 -1表示差分選択
2017/2/8 11:39:50プログラミング/git 1,568+9 -0表示表示中選択
2014/12/3 6:26:21プログラミング/git 1,331+10 -2表示差分選択
2014/12/3 5:06:36プログラミング/git 983— —表示—基準

基準: プログラミング/git (2014/12/3 5:06:36) → 比較: プログラミング/git (2017/2/8 11:39:50)

@@ -6,6 +6,8 @@
* alias [#x821df63]
+https://git.wiki.kernel.org/index.php/Aliases ここにも参考になる物がいっぱいある。
+
** git s [#bacfadbd]
s = status
@@ -27,12 +29,27 @@
d = !git diff --minimal --ignore-all-space `git log --oneline --branches | peco | ruby -e 'STDIN.readlines.reverse.each{|s| puts s[0..6]}'`
-** git add-peco [#v99e3026]
+** git add-file [#v99e3026]
git add するファイルを一覧から選ぶ
- add-peco = "!if [ \"`git status -s`\" != \"\" ]; then echo git add `git status -s | peco | set -e 's/.* //'`; fi"
+ add-file = "!if [ \"`git status --porcelain | grep -E '^.[^ ]'`\" != \"\" ]; then git add `git status --porcelain | grep -E '^.[^ ]' | peco | sed -e 's/.* //'`; fi"
+** git reset-file [#tf9d5f47]
+
+git reset するファイルを一覧から選ぶ
+
+ reset-file = "!if [ \"`git status --porcelain | grep -E '^[^\\? ]'`\" != \"\" ]; then git reset `git status --porcelain | grep -E '^[^\\? ]' | peco | sed -e 's/.* //'`; fi"
+
+** git tag-date [#be3ffd5e]
+
+git tag のリストに日付をつける
+
+ tag-date = "tag-date="for-each-ref --sort=-taggerdate --format='%(taggerdate:short) %(tag) %(taggername) %(subject)' refs/tags"
+
+http://qiita.com/naoty_k/items/2b9d9560381bbe316818 より
+
* コメント・質問 [#o5c9abb1]
#article_kcaptcha
+