About 439,000 results
Open links in new tab
  1. How to set the default branch in GitHub.com? - Stack Overflow

    Aug 27, 2012 · How to set the default branch on github.com when I go to browse commits. If you fork the repository, you can change the default branch of your fork, by clicking on the Settings button (see …

  2. git how to change default branch for everything I do?

    May 15, 2021 · To change the default branch globally for all projects, configure git to do so, by issuing the following command $ git config --global init.defaultBranch main The --global option sets this …

  3. Change from master to a new default branch git - Stack Overflow

    As you can see On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean PS C:\Users\dir\Documents\GitHub\repo> git log commit 867cxx …

  4. How to change current branch in git from master to main

    Apr 21, 2022 · By default Git branch is master.You can change it to main;because Github and many developer prefers it. You can change the default branch name globally using: git config --global …

  5. github - Change default branch via CLI - Stack Overflow

    Dec 30, 2022 · 4 I have been looking for a way to change the default branches of a bunch of my repositories (>50). Thus I am trying to make a bash script to do it for me. However every answer I …

  6. Changing git default branch from master to main on command line (cli)

    Oct 21, 2021 · 12 You have to change the HEAD pointer directly on the server as well, not only on the clones using it as a remote. This can probably be done in two ways: Change the remote HEAD to the …

  7. How do I change the default branch for my GitHub repo, given that the ...

    Mar 11, 2022 · Now go back to GitHub and refresh the page, and sure enough, there's your missing option to set the default branch. The default branch is, by default, the one you push first, which in my …

  8. Set default name for default branch in GitHub - Stack Overflow

    Feb 9, 2021 · I finally figured it out. You can set the default name for the default branch in GitHub in: Settings->Repositories. There, there is a section called "Repository default branch" that says: …

  9. What exactly is the default git branch - Stack Overflow

    Mar 19, 2022 · Changing the default name of the first branch that is created when using git init is a git feature, but I think OP is referring to online version control platforms' option to set a "default branch", …

  10. GitHub Actions: how can I run a workflow created on a non-'master ...

    Aug 11, 2020 · You can run a workflow that is still in development in a branch branch-name from the command line, with the GitHub CLI. The documentation says: To run a workflow on a branch other …