ITK Git repository primary branch name transition from master to main

Hi folks,

ITK’s default, primary branch name has been renamed from master to main.

New GitHub clones will default to this branch.

A few notes on changes that might be required.

GitHub Forks

When you visit your fork on GitHub, you may encounter:

Click the branch settings link, and click the pen button icon in the repositories Default branch settings:

Then, enter main:

Most remote module repositories have aleady made this transition – you may want to make similar changes in any remote module forks.

Local clones

If you have a local clone that was already configured for development with the ./Utilities/SetupForDevelopment.sh script,

cd ITK
git checkout master
git pull upstream main
./Utilities/SetupForDevelopment.sh

This will prompt to change the master branch to main. When doing so, it will also update other local Git configurations accordingly.

Dashboard submissions

If have CDash dashboard submissions, update your dashboard configuration to include:

set(dashboard_git_branch main)

If you run into other issues, please make a note on this thread.

6 Likes

Thank you very much @matt.mccormick I like “main” :+1:

I’m not sure if it’s related, but I have run into an issue, locally, on Windows (on two computers, actually). When I try to commit, using TortoiseGit, it fails, saying:


Check version of SetupForDevelopment.....................................Passed
local pre-commit.........................................................Passed
kw commit-msg............................................................Failed
- hook id: kw-commit-msg
- exit code: 9009

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

I did install Python locally by running the installer (“python-3.13.5-amd64.exe”). Any clue?

@Niels_Dekker that issue is the result of an unrelated recent change that migrates the pre-commit hook from bash to python. Here is a fix:

Hey @matt.mccormick , should I make this change to the adaptive denoising module?

Hey @ntustison , yes that would be great :slight_smile: :+1:

1 Like