<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>version-control on Lankan Lion | Tech Blog</title><link>https://blog.lankanlion.com/tags/version-control/</link><description>Recent content in version-control on Lankan Lion | Tech Blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 27 Jan 2023 22:55:26 +0530</lastBuildDate><atom:link href="https://blog.lankanlion.com/tags/version-control/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Change Default branch to 'main'</title><link>https://blog.lankanlion.com/post/how-to-migrate-to-main/</link><pubDate>Fri, 27 Jan 2023 22:55:26 +0530</pubDate><guid>https://blog.lankanlion.com/post/how-to-migrate-to-main/</guid><description>Renaming the Local master as main The initial action is to change the name of the &amp;ldquo;master&amp;rdquo; branch in your local GIT repositories as &amp;ldquo;main&amp;rdquo;:
$ git branch -m master main Let&amp;rsquo;s quickly check if this has worked as expected:
$ git status On branch main Your branch is up to date with &amp;#39;origin/master&amp;#39;. nothing to commit, working tree clean So far, so good! The local branch has been renamed - but we now need to make some changes on the remote repository as well!</description></item></channel></rss>