在特定项目中,单词“feature”传递为大写。
For example:
git checkout -b "feature/#123123-test"
the name of branch will:
FEATURE/#123123-teste
if I put:
git checkout -b "otherthing/#123123-test"
will:
otherthing/#123123-test
Run Code Online (Sandbox Code Playgroud)
.gitconfig:
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[user]
name = Bruno
email = *******@******.com.br
Run Code Online (Sandbox Code Playgroud)
有人知道这里发生了什么事吗?
在不区分大小写的文件系统(例如 Windows)上;
$ git commit --allow-empty -m "Init."
[master (root-commit) 69082bb] Init.
$ git checkout -b FEATURE/first
Switched to a new branch 'FEATURE/first'
$ git checkout -b feature/second
Switched to a new branch 'feature/second'
$ git branch
FEATURE/first
FEATURE/second
master
Run Code Online (Sandbox Code Playgroud)
您的分支存储为包含它们指向的提交哈希的文件和目录。当您创建“分支文件夹”时,它只会创建一次,并且始终具有该大小写。
查看.git/refs/heads您的存储库的案例。