if (FALSE) {
git_default_branch()
}
if (FALSE) {
git_default_branch_configure()
}
if (FALSE) {
git_default_branch_rediscover()
# you can always explicitly specify the local branch that's been playing the
# role of the default
git_default_branch_rediscover("unconventional_default_branch_name")
}
if (FALSE) {
git_default_branch_rename()
# you can always explicitly specify one or both branch names
git_default_branch_rename(from = "this", to = "that")
}
Run the code above in your browser using DataLab