Rookie Geek

A geeky noob mumbling jumble.

Thursday, 2 October 2014

Git delete branch

Delete local branch

git branch -d [branchname]


Delete remote branch

git push origin --delete [branchname]
or
git push origin :[branchname]

The second way is basically saying "push nothing to remote [branchname]"
Posted by Jimz at 11:03
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Ctrl + F

Ctrl + H

  • ▼  2014 (34)
    • ►  November (1)
    • ▼  October (6)
      • AEM/CQ - JSP XSS protection
      • JSTL - string/text truncation
      • Sublime - search and replace text
      • JSP/JSTL EL lastIndexOf
      • Git delete branch
      • Git pushing local branch to specific remote branch
    • ►  September (2)
    • ►  August (7)
    • ►  July (2)
    • ►  June (3)
    • ►  May (1)
    • ►  April (3)
    • ►  March (4)
    • ►  February (4)
    • ►  January (1)
  • ►  2013 (53)
    • ►  December (1)
    • ►  November (4)
    • ►  October (2)
    • ►  September (8)
    • ►  August (13)
    • ►  July (7)
    • ►  June (4)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (4)
    • ►  January (6)
  • ►  2012 (8)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  April (1)
    • ►  March (2)
Authored by Jimz Au. Simple theme. Powered by Blogger.