This page (revision-2) was last changed on 14-Sep-2020 22:32 by arcoleo

This page was created on 08-Nov-2019 21:05 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
2 14-Sep-2020 22:32 815 bytes arcoleo to previous
1 08-Nov-2019 21:05 226 bytes unknown to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 removed 38 lines
!! Macro
! Create
Add the following to your {{~/.gitconfig}}.
{{{
bpc = "!f() { git branch ${1} && git push --set-upstream origin ${1} && git checkout ${1}; }; f"
}}}
Run as
{{{
git bpc myBranch
}}}
This will create the local branch, push it, and check it out.
! Delete
Add the following to your {{~/.gitconfig}}.
{{{
bdf = "!f() { git branch -D ${1} && git push origin --delete ${1}; }; f"
}}}
Run as
{{{
git bdf myBranch
}}}
from any branch other than byBranch.
This will delete both local and remote copies of the branch.
!! Manual