version_control:git_basics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
version_control:git_basics [2023/03/01 20:04] – [Clarification] mithat | version_control:git_basics [2023/03/01 20:06] – [Branching and merging] mithat | ||
---|---|---|---|
Line 21: | Line 21: | ||
<WRAP center round tip 90%> | <WRAP center round tip 90%> | ||
- | Use the '' | + | Use the '' |
</ | </ | ||
===== 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