User Tools

Site Tools


version_control:git_basics

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
version_control:git_basics [2023/03/01 20:05] – [Basic operations] mithatversion_control:git_basics [2023/03/01 20:06] (current) – [Branching and merging] mithat
Line 25: Line 25:
  
 ===== Branching and merging ===== ===== Branching and merging =====
-  * A git repository has a default branch called **master**.+  * A git repository has a default branch called **main**. (In older configurations this may be **master**.)
   * To create a new branch: <code bash>git branch branch-name</code>   * To create a new branch: <code bash>git branch branch-name</code>
   * Switch to an existing branch: <code bash>git checkout branch-name</code>   * Switch to an existing branch: <code bash>git checkout branch-name</code>
version_control/git_basics.txt · Last modified: 2023/03/01 20:06 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki