Skip to content

Instantly share code, notes, and snippets.

View matthiasschobner's full-sized avatar

Matthias Schobner matthiasschobner

View GitHub Profile
@ezamelczyk
ezamelczyk / gitcount.sh
Created June 14, 2019 09:45
Git count lines by author
#!/bin/sh
git log --shortstat | grep -E "(Author: )(\b\s*([A-Z]\w+)){2}|fil(e|es) changed" | awk '
{
if($1 ~ /Author/) {
author = $2" "$3
} else {
files[author]+=$1
inserted[author]+=$4
deleted[author]+=$6
}
@schmidt1024
schmidt1024 / lab2hub.txt
Last active August 21, 2017 09:14
git move from gitlab to github
# first create an empty repo on GitHub
git remote add github https://yourLogin@github.com/yourLogin/yourRepoName.git
git push --mirror github
git remote rename origin gitlab
git remote rename github origin
@schmidt1024
schmidt1024 / .gitconfig
Last active April 13, 2021 12:17 — forked from phproberto/.gitconfig
.gitconfig
[color]
status = auto
diff = auto
branch = auto
interactive = auto
ui = true
[alias]
amend = !"git commit --amend -C HEAD"
s = status
a = add -A
@rbialek
rbialek / config
Created June 7, 2011 13:32
ssh/.config
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/user/.ssh/id_rsa