Skip to content

Instantly share code, notes, and snippets.

@shiva
Last active July 27, 2018 22:02
Show Gist options
  • Save shiva/3791502 to your computer and use it in GitHub Desktop.
Save shiva/3791502 to your computer and use it in GitHub Desktop.
Commonly used aliases for git
# git config --global -e
Then copy the following into the global git config
[alias]
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges
st = status
c = commit
b = branch
co = checkout
d = diff
s = show --pretty="format:" --name-only
rms = "!f(){ git rm --cached \"$1\";rm -r \"$1\";git config -f .gitmodules --remove-section \"submodule.$1\";git config -f .git/config --remove-section \"submodule.$1\";git add .gitmodules; }; f"
ghp = "!g() { git config user.name \"Shiva\"; git config user.email \"shiv@shiv.me\"; }; g"
la = "!git config -l | grep alias | cut -c 7-"
#git lg
7106891 - MAINTAINERS: update Intel C600 SAS driver maintainers (4 hours ago) <Dave Jiang>
11ef4cf - syscalls: add __NR_kcmp syscall to generic unistd.h (6 hours ago) <Mark Salter>
96af69e - ipv6: mip6: fix mip6_mh_filter() (29 hours ago) <Eric Dumazet>
1b05c4b - ipv6: raw: fix icmpv6_filter() (32 hours ago) <Eric Dumazet>
be8cfc4 - c/r: prctl: fix build error for no-MMU case (33 hours ago) <Mark Salter>
b5bd6a0 - lib/flex_proportions.c: fix corruption of denominator in flexible proportions (33 hours ago) <Jan Kara>
0e75898 - checksyscalls: fix "here document" handling (33 hours ago) <Heiko Carstens>
a140b98 - pwm-backlight: take over maintenance (33 hours ago) <Thierry Reding>
16d74eb - sh: pfc: Fix up GPIO mux type reconfig case. (2 days ago) <Paul Mundt>
3e10986 - net: guard tcp_set_keepalive() to tcp sockets (2 days ago) <Eric Dumazet>
69190e6 - phy/micrel: Add missing header to micrel_phy.h (2 days ago) <Marek Vasut>
510d573 - phy/micrel: Rename KS80xx to KSZ80xx (2 days ago) <Marek Vasut>
212ea99 - phy/micrel: Implement support for KSZ8021 (2 days ago) <Marek Vasut>
e70cf54 - tile: gxio iorpc numbering change for TRIO interface (2 days ago) <Chris Metcalf>
b02d617 - c6x: use asm-generic/barrier.h (2 days ago) <Mark Salter>
8d54db79 - xen/boot: Disable NUMA for PV guests. (3 days ago) <Konrad Rzeszutek Wilk>
979570e - (v3.6-rc7) Linux 3.6-rc7 (3 days ago) <Linus Torvalds>
faa2ad0 - edac_mc: edac_mc_free() cannot assume mem_ctl_info is registered in sysfs. (3 days ago) <Shaun Ruffell>
ef6e781 - edac_mc: fix messy kfree calls in the error path (3 days ago) <Fengguang Wu>
7caf69f - batman-adv: Fix symmetry check / route flapping in multi interface setups (3 days ago) <Linus Lüssing>
40a3eb3 - batman-adv: Fix change mac address of soft iface. (3 days ago) <Def>
5f0ecb9 - hwmon: (fam15h_power) Tweak runavg_range on resume (3 days ago) <Andreas Herrmann>
641f145 - hwmon: (coretemp) Use get_online_cpus to avoid races involving CPU hotplug (3 days ago) <Silas Boyd-Wickizer>
1ec3ddf - hwmon: (via-cputemp) Use get_online_cpus to avoid races involving CPU hotplug (3 days ago) <Silas Boyd-Wickizer>
#git log
commit 5e19997a742c7c8203be628a7a69babc3bcf01a4
Merge: 7106891 11ef4cf
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Sep 26 14:28:17 2012 -0700
Merge tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming
Pull c6x arch fixes from Mark Salter:
- Add __NR_kcmp to generic syscall list
- C6X: Use generic asm/barrier.h
* tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming:
syscalls: add __NR_kcmp syscall to generic unistd.h
c6x: use asm-generic/barrier.h
commit 7106891a5c5960782801366ac49e47aa996b662f
Author: Dave Jiang <dave.jiang@intel.com>
Date: Tue Sep 25 15:24:56 2012 -0700
MAINTAINERS: update Intel C600 SAS driver maintainers
Cc: Lukasz Dorau <lukasz.dorau@intel.com>
Cc: Maciej Patelczyk <maciej.patelczyk@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
commit 11ef4cfac935ab45eb4c7f98d26c78ee69627909
Author: Mark Salter <msalter@redhat.com>
Date: Mon Sep 24 15:19:26 2012 -0400
syscalls: add __NR_kcmp syscall to generic unistd.h
Commit d97b46a64 ("syscalls, x86: add __NR_kcmp syscall" ) added a new
syscall to support checkpoint restore. It is currently x86-only, but
that restriction will be removed in a subsequent patch. Unfortunately,
the kernel checksyscalls script had a bug which suppressed any warning
to other architectures that the kcmp syscall was not implemented. A
patch to checksyscalls is being tested in linux-next and other
architectures are seeing warnings about kcmp being unimplemented.
bash-3.2$ git show-files 6861509
drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c
bash-3.2$ git show-files ef6e781
drivers/edac/edac_mc.c
bash-3.2$ git show-files 11ef4cf
include/asm-generic/unistd.h
bash-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment