Update 'pages/user-repos.md' #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The repo name doesn't have to have a ".git" on the end, and the ".git" is visible in the URL.
Using
foo.git
as the repo's directory is the usual naming convention for bare repos. However, cgit does not include.git
in the URL for repos. All of the repos I control on git.tilde.institute (gbmor/, tilde/) use this naming structure, but.git
is omitted by cgit from the HTTP path.The only way I can think of
.git
being visible is if thefoo.git
folder was not a repo but contained a repo,bar.git
such that the structure is:public_repos/foo.git/bar.git
In which case
foo.git
would not be interpreted as a bare repo but as an intentionally named parent directory and namespaced accordingly bycgit
as:Then why does https://git.tilde.institute/login/tcoin/ work while the folder naming structure I have used is
tcoin
and nottcoin.git
? I cloned the repo from Github.It's still smart enough to be able to tell it's a repo even though it's not a bare repo, but calling the parent folder
tcoin.git
while it's not a bare repo will makecgit
think the repo's name istcoin.git
.In this case, the guide refers to using bare repos and instructs the reader to add the location as a remote, then push to it, rather than interact with it directly.
Pull request closed