Skip to content

Conversation

@arxanas
Copy link
Owner

@arxanas arxanas commented Jan 13, 2023

Fixes #728.

Branches can have additional configuration, such as the associated remote or upstream branch, which are stored via `git-config` in a configuration file. Previously, we only deleted the reference for the branch, without touching this configuration (if it existed). This means that if you create a new branch with the same name, it will accidentally inherit any previous configuration. It also means that your config file can grow unbounded in size if you create many branches with different names.
@arxanas arxanas merged commit c6292d2 into master Jan 13, 2023
@arxanas arxanas deleted the arxanas/rewrite branch January 13, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting a branch does not remove the associated [branch "..."] section from .git/config

2 participants