Difference between revisions of "Git branch --list"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
+
[[List all branches]]:
[[git branch]] --list
+
* <code>[[git branch --list -a]]</code>
 +
* <code>[[git branch]] --list</code> or  <code>[[git branch -l]]</code>
 
  prod  
 
  prod  
 
  staging
 
  staging
  
  [[git checkout]]
+
  [[git branch --list -a]]
 +
  main
 +
  list
 +
* currentbranch
 +
  remotes/origin/yourbranch1
 +
  remotes/origin/yourbranch2
 +
  remotes/origin/yourbranch1 
 +
 
 +
 
 +
== Related ==
 +
* <code>[[git checkout]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 11:01, 19 January 2024

List all branches:

prod 
staging
git branch --list -a
  main
  list
* currentbranch
  remotes/origin/yourbranch1
  remotes/origin/yourbranch2
  remotes/origin/yourbranch1   


Related[edit]

See also[edit]

Advertising: