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

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
  error: Cannot delete branch 'master' [[checked out]] at '/path/to/'
 
  error: Cannot delete branch 'master' [[checked out]] at '/path/to/'
  
<code>[[git push origin --delete master]]</code>
+
[[git push origin --delete master]]
 +
 
 +
git branch --delete master
 +
Deleted branch master (was 8a18cb0).
 +
 
 +
== Related ==
 +
* <code>[[git pull]]</code>
  
 
==See also==
 
==See also==

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: