Title: Default git branch for wordpress/wordpress-develop
Author: Aaron Jorbin
Published: November 10, 2021

---

 [  ](https://profiles.wordpress.org/jorbin/) [Aaron Jorbin](https://profiles.wordpress.org/jorbin/)
6:57 pm _on_ November 10, 2021     
Tags: [git ( 8 )](https://make.wordpress.org/core/tag/git/),
[github ( 10 )](https://make.wordpress.org/core/tag/github/)   

# Default git branch for wordpress/wordpress-develop

Last year the decision was made to [move the default branches for official WordPress GitHub repositories from](https://make.wordpress.org/core/2020/06/18/proposal-update-all-git-repositories-to-use-main-instead-of-master/)`
master` to `trunk`. The necessary systems work for the svn to git sync has been 
completed and as of today, [https://github.com/WordPress/wordpress-develop](https://github.com/WordPress/wordpress-develop)
and git://develop.git.wordpress.orgWordPress.org The community site where WordPress
code is created and shared by the users. This is where you can download the source
code for WordPress core, plugins and themes as well as the central location for 
community conversations and organization. [https://wordpress.org/](https://wordpress.org/)/
have been updated to reflect the new default branchbranch A directory in Subversion.
WordPress uses branches to store the latest development code for each major release(
3.9, 4.0, etc.). Branches are then updated with code for any minor releases of that
branch. Sometimes, a major version of WordPress and its minor versions are collectively
referred to as a "branch", such as "the 4.0 branch"..

If you have a local checkout, you can take the following steps to update the default
branch

    ```wp-block-code
    $ git checkout master
    $ git branch -m master trunk
    $ git fetch
    $ git branch --unset-upstream
    $ git branch -u origin/trunk
    $ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/trunk
    ```

Please note that https://github.com/wordpress/wordpress and git://core.git.wordpress.
org/ along with a few others on github have not been updated yet. This post will
be updated when that move is complete.

Thanks to [@desrosj](https://profiles.wordpress.org/desrosj/) for reviewing this
post.

[#git](https://make.wordpress.org/core/tag/git/), [#github](https://make.wordpress.org/core/tag/github/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2021/11/10/default-git-branch-for-wordpress-wordpress-develop/?share=linkedin)

# Post navigation

[← Dev Chat Agenda for November 10, 2021](https://make.wordpress.org/core/2021/11/10/dev-chat-agenda-for-november-10-2021/)

[Dev Chat Summary November 10, 2021 →](https://make.wordpress.org/core/2021/11/10/dev-chat-summary-november-10-2021/)