mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 20:45:37 +00:00
add gdd to delete git local and remote branch
This commit is contained in:
parent
46bbd2c967
commit
cdb9da9c50
@ -113,6 +113,7 @@ in
|
|||||||
gpd = "git push origin -d";
|
gpd = "git push origin -d";
|
||||||
gbd = "git branch -d";
|
gbd = "git branch -d";
|
||||||
gbD = "git branch -D";
|
gbD = "git branch -D";
|
||||||
|
gdd = "git-delete-both";
|
||||||
gr = "git reset";
|
gr = "git reset";
|
||||||
grh = "git reset --hard";
|
grh = "git reset --hard";
|
||||||
gm = "git merge";
|
gm = "git merge";
|
||||||
@ -158,6 +159,13 @@ in
|
|||||||
and git branch -D $branch
|
and git branch -D $branch
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
git-delete-both = {
|
||||||
|
argumentNames = "branch";
|
||||||
|
body = ''
|
||||||
|
git push origin -d $branch
|
||||||
|
git branch -d $branch
|
||||||
|
'';
|
||||||
|
};
|
||||||
git-merge-fuzzy = {
|
git-merge-fuzzy = {
|
||||||
body = ''
|
body = ''
|
||||||
set branch (git-fuzzy-branch "merge from...")
|
set branch (git-fuzzy-branch "merge from...")
|
||||||
|
Loading…
Reference in New Issue
Block a user