In Git, a branch is a new/separate version of the main repository: git branch feature-login, git checkout -b branch-name, and git merge.
Git & GitHub Tutorial
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Branches
6 min read
•
Chapter 5 of 6
Git Branch & Merge
In Git, a branch is a new/separate version of the main repository: git branch feature-login, git checkout -b branch-name, and git merge.
Example
<!DOCTYPE html><html><body style="font-family:monospace;padding:20px;"><pre>$ git checkout -b feature-dark-mode\n$ git merge feature-dark-mode</pre></body></html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!