- Create an empty directory (you can name it my-repo)
mkdir my-repo - cd into it
cd my-repo - Initialize the directory
git init - Make a commit (an empty one is fine)
git commit --allow-empty -m "first commit" - Copy the path to the directory
OlderNewer
mkdir my-repocd my-repogit initgit commit --allow-empty -m "first commit"