Repo Defaults like privat=true and branch=main #587
-
Hi, I am trying to figure out how I can set defaults for new repositories. If I create a new one I want that the default branch is main not master and the repo is private. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @bw9ubwo! In terms of default branch name, you could change that in Git config for the user running Soft Serve You need to use the |
Beta Was this translation helpful? Give feedback.
Hi @bw9ubwo! In terms of default branch name, you could change that in Git config for the user running Soft Serve
git config --global init.defaultBranch main
.You need to use the
-p
flag on the SSH command-line interfacessh your-soft-server repo create -p repo-name
to create private repositories.If you're the only one using the server, and don't care about multiple users, you could change the server
anon-access
tono-access
andallow-keyless
tofalse
. Refer to the authentication section for more information.