Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rb:git-cheatsheet [03/07/2019 10:04]
andrew [git branch]
rb:git-cheatsheet [11/07/2019 11:25] (current)
andrew [git branch]
Line 33: Line 33:
  
 ==== git branch ==== ==== git branch ====
 +
 +=== Adding and listing branches ===
 +
  
 | git branch <​name>​ | create new branch | | git branch <​name>​ | create new branch |
Line 38: Line 41:
 | git branch | List branches | | git branch | List branches |
 | git branch -a | List all branches, local and remote | | git branch -a | List all branches, local and remote |
 +
 +
 +=== Deleting local and remote branches ===
 +
 +
 | git branch -d <​branch>​ | safe delete branch id merged ok | | git branch -d <​branch>​ | safe delete branch id merged ok |
 | git branch -D <​branch>​ | delete *without* warnings | | git branch -D <​branch>​ | delete *without* warnings |

rb/git-cheatsheet.txt ยท Last modified: 11/07/2019 11:25 by andrew