Difference between revisions of "Git branch --delete branch name"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 +
*https://git-scm.com/docs/git-branch
  
 
  [[git branch]] --delete [[master]]
 
  [[git branch]] --delete [[master]]
 
  error: Cannot delete branch 'master' [[checked out]] at '/path/to/'
 
  error: Cannot delete branch 'master' [[checked out]] at '/path/to/'
 +
 +
[[git push origin --delete master]]
 +
 +
git branch --delete master
 +
Deleted branch master (was 8a18cb0).
 +
 +
== Related ==
 +
* <code>[[git pull]]</code>
  
 
==See also==
 
==See also==
 
*{{git branch}}
 
*{{git branch}}
  
[[Category:Git}}
+
[[Category:Git]]

Latest revision as of 14:17, 19 October 2021

git branch --delete master
error: Cannot delete branch 'master' checked out at '/path/to/'
git push origin --delete master
git branch --delete master
Deleted branch master (was 8a18cb0).

Related[edit]

See also[edit]

Advertising: