diff --git a/blog/dot-gitconfig-with-git-lo-lco-lpo-lpco-m-pl.mdwn b/blog/dot-gitconfig-with-git-lo-lco-lpo-lpco-m-pl.mdwn new file mode 100644 index 00000000..c364a3d0 --- /dev/null +++ b/blog/dot-gitconfig-with-git-lo-lco-lpo-lpco-m-pl.mdwn @@ -0,0 +1,22 @@ +[[!meta title="Added new short commands to .gitconfig (lo, lco, lpc, lpco, m, pl)"]] + +As some of you are using my +[[git configuration|configs/dot-gitconfig]], there's an updated +version now, that includes a short version of **--pretty=oneline** +option for **git log**, which is very useful if you want to get +a quick impression on what is going on. Thus the new short commands +are (just an o added at the end): + + git lo + git lco + git lpo + git lpco + +Furthermore I added the following new short commands: + + git m (merge) + git pl (pull) + +Have fun, other lazy people like me! + +[[!tag config git unix]] diff --git a/configs/dot-gitconfig b/configs/dot-gitconfig index 9d6264e2..5973080a 100644 --- a/configs/dot-gitconfig +++ b/configs/dot-gitconfig @@ -1,20 +1,20 @@ # # 2009 Nico Schottelius (nico-configfiles at schottelius.org) # -# This file is part of nsconfigfiles. +# This file is part of nsdotfiles. # -# nsconfigfiles is free software: you can redistribute it and/or modify +# nsdotfiles is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# nsconfigfiles is distributed in the hope that it will be useful, +# nsdotfiles is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with nsconfigfiles. If not, see . +# along with nsdotfiles. If not, see . # [alias] @@ -29,16 +29,25 @@ d = diff dc = diff --color f = fetch - l = log - lc = log --color - lp = log -p --abbrev-commit - lpc = log -p --color --abbrev-commit + l = log + lo = log --pretty=oneline + lc = log --color + lco = log --color --pretty=oneline + lp = log -p --abbrev-commit + lpo = log -p --abbrev-commit --pretty=oneline + lpc = log -p --color --abbrev-commit + lpco = log -p --color --abbrev-commit --pretty=oneline + m = merge p = push + pl = pull s = status t = tag +[core] + excludesfile = /home/users/nico/.gitignore-global + [user] - email = nico@ikn.schottelius.org + email = nico@kr.ethz.ch name = Nico Schottelius [http] @@ -46,3 +55,9 @@ [pager] status = true + +[merge] + tool = vimdiff + +[push] + default = matching