Logo

dev-resources.site

for different kinds of informations.

Bagaimana cara memindahkan branch utama git dari master menjadi main

Published at
6/11/2024
Categories
git
github
versioncontrol
developer
Author
awan
Author
4 person written this
awan
open
Bagaimana cara memindahkan branch utama git dari master menjadi main

Pada saat menginstall git kita akan memilih branch mana yang menjadi branch utama apakah ingin menggunakan master atau main, tapi kita salah memilih branch utamanya dan kita perlu mengatur ulangnya. Karena beberapa repository seperti github sudah merubah branch utamanya dari master menjadi main.

Lalu bagaimana cara mengatur ulang branch utama pada git yaitu dengan mengetikan perintah

git config --global init.defaultBranch main

versioncontrol Article's
30 articles in total
Favicon
Do You Care About Commit Messages?
Favicon
GitHub vs. GitLab vs. Bitbucket
Favicon
Git Hosting Services: A Comparison of GitHub, GitLab, Bitbucket, and Azure Repos
Favicon
Mastering Git Repositories: Initialization, Cloning, Remotes, URLs, and Submodules
Favicon
A Comprehensive Guide to All Git Commands for Every Developer
Favicon
Committing Changes in Git: A Complete Guide to Git Add, Commit, Messages, and Amending
Favicon
Mastering Git Branching and Merging: A Complete Guide to Git Branches, Merge, Rebase, and More
Favicon
Git Tags
Favicon
Essential Git Commands Every Developer Should Know
Favicon
Master Git: A Comprehensive Beginner to Advanced Guide
Favicon
Understanding Git: The Ultimate Guide with Practical Examples
Favicon
.git
Favicon
Code Like a Librarian: A Beginner's Guide to Git and GitHub
Favicon
Version Control with Git: How to Master It - Best Practices for Efficient Code Management by Git
Favicon
A Beginner’s Guide to GitHub
Favicon
Effective Git Workflow: Managing Version Control in Team Environments
Favicon
π“π²π©πžπ¬ 𝐨𝐟 π•πžπ«π¬π’π¨π§ 𝐂𝐨𝐧𝐭𝐫𝐨π₯ π’π²π¬π­πžπ¦π¬:
Favicon
Azure DevOps Series - Azure Repos
Favicon
Mastering DevOps Branching: Your Ultimate Guide to Git Flow, Trunk, Tag-Based, and Hybrid Strategies
Favicon
Ultimate Git Basics Cheatsheet [Live Doc]
Favicon
Understanding the Role of Git Tags in Version Control
Favicon
Git - Useful Commands
Favicon
Version Control and Git: Essential Tools for Modern Software Development
Favicon
Ultimate Git Branches & Merging Cheatsheet [Live Doc]
Favicon
Git and GitHub for Beginners: A Comprehensive Step-by-Step Guide
Favicon
Bagaimana cara memindahkan branch utama git dari master menjadi main
Favicon
Version Control with Git and GitHub: The Importance and Effective Usage
Favicon
A Comprehensive Guide to Using Footers in Conventional Commit Messages
Favicon
Version Control Best Practices with Git and GitHub
Favicon
Using interactive rebase in Git

Featured ones: