git

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git [2024/12/12 17:28] mguptongit [2026/03/31 20:43] (current) mgupton
Line 2: Line 2:
 A general guide for the distributed version control system Git. A general guide for the distributed version control system Git.
  
 +  * [[git init]]
   * {{ :wiki:git-cheatsheet-en-dark.pdf | Git cheatsheet}}   * {{ :wiki:git-cheatsheet-en-dark.pdf | Git cheatsheet}}
  
Line 124: Line 125:
   * Checkout the branch the new branch is based on   * Checkout the branch the new branch is based on
   * Then create branch   * Then create branch
-<code>+<code bash>
 git branch <new branch name> git branch <new branch name>
 </code> </code>
Line 136: Line 137:
   * Then delete the local branch   * Then delete the local branch
 <code bash> <code bash>
-git push -d <remote_name> <branchname+git push -d <remote_name> <branch name
-git branch -d <branchname>+git branch -d <branch name> 
 +</code> 
 + 
 +To force delete an unmerged branch 
 +<code bash> 
 +git branch -D <branch name>
 </code> </code>
  
  • git.1734024504.txt.gz
  • Last modified: 2024/12/12 17:28
  • by mgupton