I was given a task to setup a git repository with the name /opt/blog.git
in the storage server. I created an repo for blog under /opt
with the command git init blog
it created a repository /opt/blog/.git
. When I checked my solution I got the message git bare repository '/opt/blog.git' not found on Storage Server or its not a bare repository
I went through the Git for beginners course, I did not find any videos related to bare repository, where are the learning materials related to bare repositories, I came to know about bare repositories in git from the error messages
You didnāt pass the --bare
option to the git
command. Also you did not specify the path so you have created /opt/blog
as a git repo and not /opt/blog.git
as requested.
The documentation for the git init
options are here:
Git - git-init Documentation (git-scm.com)
I got this answer from google before posting the question here, my question is regarding the kode kloud content
Thereās no āKodeKloudā version of git.
git is git, and it does what it says in the official documentation that Al has pointed to.
I understand there is no ākodecloud version of gitā What I wanted to know is the answer for the following question āis there a course on kodekloud that teaches about bare repository?ā. I think there is a misunderstanding and confusion due to my poor communication skills sorry for that.
There is not a course for every option of every command of every tool you will encounter in the world of DevOps.
A large part of the job is finding information for yourself. Google is your friend.