Active reading [<https://en.wikipedia.org/wiki/One-liner_program>].
Source Link
Peter Mortensen
  • 29.1k
  • 21
  • 97
  • 124

A One linerone-liner command to delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

D=branch-name; git branch -D $D; git push origin :$D

orOr add the alias below to your ~/.gitconfig; usage. Usage: git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or add the alias below to your ~/.gitconfig; usage: git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"

A one-liner command to delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

Or add the alias below to your ~/.gitconfig. Usage: git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"
added 32 characters in body
Source Link
Vinnie James
  • 5.1k
  • 5
  • 37
  • 47

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or add the alias below to your ~/.gitconfig for; usage: git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or ~/.gitconfig for git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or add the alias below to your ~/.gitconfig; usage: git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"
git alias
Source Link
Vinnie James
  • 5.1k
  • 5
  • 37
  • 47

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or ~/.gitconfig for git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

One liner command delete both local, and remote:

D=branch-name; git branch -D $D; git push origin :$D

or ~/.gitconfig for git kill branch-name

[alias]
    kill = "!f(){ git branch -D \"$1\";  git push origin --delete \"$1\"; };f"
Source Link
Vinnie James
  • 5.1k
  • 5
  • 37
  • 47
Loading