9/16/2023 0 Comments Git change branch to master branch![]() ![]() Or subscribe directly on tinyletter.As I understand you want to do two things: Subscribe to new posts? E-mail: Yes, subscribe me! She loves data and coding, as well as teaching and sharing knowledge - oh, and sci-fi, coffee, chocolate, and cats □ Series In this post, we looked at how to rename the default branch in GitHub and Azure DevOps, and how to reconnect Azure Data Factory to use the new default branch as the collaboration branch:Ĭathrine Wilhelmsen is a Microsoft Data Platform MVP, BimlHero Certified Expert, international speaker, author, blogger, organizer, and chronic volunteer. Yay! The “main” branch is now showing as the new default branch:Ĭlick on the vertical ellipsis button next to the old “ master” branch to open the “More…” menu, then click on Delete branch: Type “ main” as the new branch name, base it on “ master”, then click on Create:Ĭlick on the vertical ellipsis button next to the new “ main” branch to open the “More…” menu, then click on Set as default branch: On the Branches page, click on New branch: Open your Azure Data Factory Git repository in Azure DevOps. (If you are using GitHub instead, scroll up ☝□□) That’s it! The new “ main” branch is now the collaboration branch and has a star icon next to it in the branch dropdown: This ensures that you keep what is in the “ main” branch as-is. Select the new " main" branch as the collaboration branch and make sure you uncheck Import existing Data Factory resources to repository. Type the name of your data factory and click on Confirm: I always recommend that you do this just in case, but since we will immediately reconnect to our Git repository, you don’t have to do it in this case. You will see a warning that you should publish all pending changes before disconnecting to avoid losing any changes. ![]() Go to the Manage page and click on Git Configuration. If you get a notification that the current working branch was deleted, use the new “ main” branch instead: Open or switch back to your Azure Data Factory. Yay! The default branch has now been changed to “ main”:īack in the branches overview, click on the delete icon next to the “ master” branch to delete it: The warning says that changing your default branch can have unintended consequences that can affect new pull requests and clones. On the default branch page, click on the branch dropdown where it says “ master”. ![]() In the branches overview, click on Change default branch: Type “ main” as the new branch name, then click on Create branch: main from master: On the Code page, click on the branch dropdown where it says “ master”. Open your Azure Data Factory Git repository in GitHub. (If you are using Azure DevOps instead, scroll down □□□) Reconnect to your Git repository in Azure Data Factory using the new “ main” branch as the collaboration branchįor The Longer Version with Screenshots, scroll down to GitHub or Azure DevOps □□ GitHub.Disconnect from your Git repository in Azure Data Factory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |