version_control:git_basics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
version_control:git_basics [2023/03/01 20:05] – [Basic operations] mithat | version_control:git_basics [2023/03/01 20:06] – [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 |
* To create a new branch: <code bash>git branch branch-name</ | * To create a new branch: <code bash>git branch branch-name</ | ||
* Switch to an existing branch: <code bash>git checkout branch-name</ | * Switch to an existing branch: <code bash>git checkout branch-name</ |
version_control/git_basics.txt · Last modified: 2024/04/17 21:53 by mithat