If it hadn’t been for the poster asking me, I really don’t know. It’s ok after experimenting. For example, if there is a directory "C:fuck", but the current working directory is not here, you can execute the following command to create a warehouse under "C:fuck":
git init \c\fuck
In addition, you can execute git init --helpView the help. This is how I found the answer (at least this is the case under Windows, I have not tried the effect under Linux)
It seems there is no such method, you can just move to another folder and then
git init
Okay^^Added:
Right click on the
Gitbash
shortcut key icon and open properties:Executed in the current folder
git init
当前文件就是一个仓库了。其他文件也想建立仓库再到对应的文件夹下执行git init
就可以了。这里提一下,每个仓库可以创建不同的分支git branch 分支名
If it hadn’t been for the poster asking me, I really don’t know. It’s ok after experimenting. For example, if there is a directory "C:fuck", but the current working directory is not here, you can execute the following command to create a warehouse under "C:fuck":
In addition, you can execute
git init --help
View the help. This is how I found the answer (at least this is the case under Windows, I have not tried the effect under Linux)git init PATH
That’s it.