Skip to content

Instantly share code, notes, and snippets.

@daliborgogic
Forked from cmatskas/GitDeleteCommands.ps1
Last active January 3, 2019 10:42
Show Gist options
  • Select an option

  • Save daliborgogic/341782189b1e21f9af993e35c99a3624 to your computer and use it in GitHub Desktop.

Select an option

Save daliborgogic/341782189b1e21f9af993e35c99a3624 to your computer and use it in GitHub Desktop.

Revisions

  1. daliborgogic revised this gist Jan 3, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions GitDeleteCommands.ps1
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    ## Delete a remote branch
    $ git push origin --delete <branch> # Git version 1.7.0 or newer
    $ git push origin :<branch> # Git versions older than 1.7.0
    $ git push origin --delete <branch> # Git version 1.7.0 or newer

    ## Delete a local branch
    $ git branch --delete <branch>
  2. Christos Matskas renamed this gist Aug 7, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Christos Matskas renamed this gist Aug 7, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Christos Matskas created this gist Aug 7, 2015.
    Binary file added GitDeleteCommands.ps
    Binary file not shown.