add new .gitconfig
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f0d4838eae
commit
0cdfeb6452
2 changed files with 46 additions and 9 deletions
22
blog/dot-gitconfig-with-git-lo-lco-lpo-lpco-m-pl.mdwn
Normal file
22
blog/dot-gitconfig-with-git-lo-lco-lpo-lpco-m-pl.mdwn
Normal file
|
@ -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]]
|
|
@ -1,20 +1,20 @@
|
||||||
#
|
#
|
||||||
# 2009 Nico Schottelius (nico-configfiles at schottelius.org)
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
# (at your option) any later version.
|
# (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
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with nsconfigfiles. If not, see <http://www.gnu.org/licenses/>.
|
# along with nsdotfiles. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
|
@ -29,16 +29,25 @@
|
||||||
d = diff
|
d = diff
|
||||||
dc = diff --color
|
dc = diff --color
|
||||||
f = fetch
|
f = fetch
|
||||||
l = log
|
l = log
|
||||||
lc = log --color
|
lo = log --pretty=oneline
|
||||||
lp = log -p --abbrev-commit
|
lc = log --color
|
||||||
lpc = log -p --color --abbrev-commit
|
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
|
p = push
|
||||||
|
pl = pull
|
||||||
s = status
|
s = status
|
||||||
t = tag
|
t = tag
|
||||||
|
|
||||||
|
[core]
|
||||||
|
excludesfile = /home/users/nico/.gitignore-global
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = nico@ikn.schottelius.org
|
email = nico@kr.ethz.ch
|
||||||
name = Nico Schottelius
|
name = Nico Schottelius
|
||||||
|
|
||||||
[http]
|
[http]
|
||||||
|
@ -46,3 +55,9 @@
|
||||||
|
|
||||||
[pager]
|
[pager]
|
||||||
status = true
|
status = true
|
||||||
|
|
||||||
|
[merge]
|
||||||
|
tool = vimdiff
|
||||||
|
|
||||||
|
[push]
|
||||||
|
default = matching
|
||||||
|
|
Loading…
Reference in a new issue