Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Upper Case Branch-names is weird and inconvenient #4

Open
Algo-ryth-mix opened this issue Jul 3, 2020 · 0 comments
Open

Upper Case Branch-names is weird and inconvenient #4

Algo-ryth-mix opened this issue Jul 3, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Algo-ryth-mix
Copy link
Member

Why change this ?

There are numerous reasons to not have any captialization in your branches but here are the three biggest problems

  • Git-workflows are mostly preconfigured to use lower-case branches
    (i.e.: cpplint will by default check master not Master)

  • Windows will mess with your stuff
    ( i.e.: to windows "Feature" and "feature" are the same folder but for git they produce different hashes)

  • Windows will mess with stuff of others too
    ( when someone who follows the "standard" pattern of naming their branches feature/some-feature, then tries at any other time tries to clone a branch called "Feature/SomeOtherFeature", git will not allow him/her)

How to change this

locally the branches would need to be renamed with
git checkout <BranchName> && git branch -m <branch-name> if you work on windows the offending files in .git/refs/heads should be deleted. afterwards upload the branch with git push --set-upstream origin <branch-name>

@Algo-ryth-mix Algo-ryth-mix added enhancement New feature or request help wanted Extra attention is needed labels Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants