GitHub Copilot Customization Explained for Beginners: Instructions, Prompt Files, Skills, Agents, and Hooks  Introduction If you've recently started using GitHub Copilot, you've probably come across terms like Instructions , Prompt Files , Skills , Agents , and Hooks . At first glance, they all seem to do the same thing—they tell Copilot what to do. So why does GitHub have five different customization features? The answer is simple: each feature solves a different problem. Think of GitHub Copilot as a new developer joining your team. On their first day, you don't just hand them code. You explain your coding standards, give them reusable templates, teach them specialized knowledge, assign them a role, and automate repetitive tasks. That's exactly how GitHub Copilot customization works. In this article, you'll learn what each feature does, when to use it, and how they all work together. By the end, you'll know which feature to start with and which ones can wait un...

Azure DevOps Tips: How to set default branch name for new repos?

Recently Azure DevOps came up with a new feature of setting the default branch name for new code repos. Based on my experience, most of the projects or organizations use the master branch to refer to the official release history (which is deployed into production), and the develop branch serves as the integration branch for features. 

Azure DevOps Git Repositories by default the branch name is set to master, and whenever we create new repositories, it takes that as default. In a nutshell, if organizations who are following Gitflow Workflow having the default branch as a master doesn't work well, which means as part of creating a new repository need to follow a two-step process where first they need to create a repo and then navigate to branches of the project à select the branch of your preference and click on the three-dot icon to set as the default branch.

Set Default Branch - old way

How to set the Default branch name for new repos in Azure DevOps?

With the new feature announcement from the Azure DevOps team now we can set the default branch name for new repositories at both the Organization level and at the Project level, just like how we set policies in Azure DevOps. Below are the steps to be followed to set the default branch name in Azure DevOps:

  • Navigate to Organisation Settings/ Project settings based on the preference to set the default branch in your Azure DevOps. 


  • Once the below setting is turned On, we can now set the default branch name for new repositories within the Azure DevOps project.


  • Now, let's verify by creating a new repository. As part of creating a repository, it will show the default branch we had set in the previous step using Project Settings.



Comments

Popular posts from this blog

Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

Azure Front Door vs Azure Traffic Manager?

Authenticate Azure Functions - API Keys