فهرست منبع

git: clean up aliases

We remove the assume stuff since we barely use them and are quite
dangerous if we forget about them.

The old oh aliases are also now superseded by the u aliases.
Thomas Dy 3 سال پیش
والد
کامیت
8f5bdaa277
1فایلهای تغییر یافته به همراه2 افزوده شده و 8 حذف شده
  1. 2 8
      .config/git/config

+ 2 - 8
.config/git/config

@@ -30,19 +30,13 @@
 	pushDefault = origin
 	pushDefault = origin
 [alias]
 [alias]
 	root = !pwd
 	root = !pwd
-	assume   = update-index --assume-unchanged
-	unassume = update-index --no-assume-unchanged
-	assumed  = "!git ls-files -v | grep ^h | cut -c 3-"
 	lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
 	lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
-	po = push origin
-	pof = push origin --force-with-lease
 	p = push
 	p = push
 	pf = push --force-with-lease
 	pf = push --force-with-lease
-	ff = merge --ff-only
-	roh = rebase origin/HEAD
-	rioh = rebase -i origin/HEAD
+	ff = merge --ff-only @{upstream}
 	ru = rebase @{upstream}
 	ru = rebase @{upstream}
 	riu = rebase -i @{upstream}
 	riu = rebase -i @{upstream}
+	riau = rebase -i --autosquash @{upstream}
 	ca = commit --amend
 	ca = commit --amend
 	smash = "!git add -u && git ca --no-edit && git pof"
 	smash = "!git add -u && git ca --no-edit && git pof"
 	reset-head = remote set-head origin -a
 	reset-head = remote set-head origin -a