From 3e571066f73880fc3500b9ad751fbd17f096d628 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Thu, 20 Mar 2014 16:37:20 -0300 Subject: [PATCH 1/2] Add aliases to set git remote urls --- templates/.gitconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/.gitconfig b/templates/.gitconfig index c88bb48..29ec49d 100644 --- a/templates/.gitconfig +++ b/templates/.gitconfig @@ -26,6 +26,11 @@ bl = branch -a rl = remote -v + # Set Remote + rs = remote set-url + rso = remote set-url origin + rsu = remote set-url upstream + # Status st = status -s From 3c896e95050b5d329b230e71912fa2b5351bcd66 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Thu, 20 Mar 2014 16:42:39 -0300 Subject: [PATCH 2/2] Add aliases to add remotes --- templates/.gitconfig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/.gitconfig b/templates/.gitconfig index 29ec49d..ee56b55 100644 --- a/templates/.gitconfig +++ b/templates/.gitconfig @@ -26,11 +26,6 @@ bl = branch -a rl = remote -v - # Set Remote - rs = remote set-url - rso = remote set-url origin - rsu = remote set-url upstream - # Status st = status -s @@ -52,6 +47,14 @@ psum = push upstream master psug = push upstream gh-pages + # Remote + ra = remote add + rao = remote add origin + rau = remote add upstream + rs = remote set-url + rso = remote set-url origin + rsu = remote set-url upstream + # Logs l = log --pretty=oneline --decorate --abbrev-commit --max-count=15 ll = log --graph --pretty=format:'%Cred%h%Creset %an: %s %Creset%Cgreen(%cr)%Creset' --abbrev-commit --date=relative