When you execute git init
in a new directory or an existing directory, Git creates a .git
directory, where almost all the contents of the Git store and operation are located in the directory.
If you want to back up or copy a library, basically copy this directory to other places.
And now, I just want to download .git
directory include contents from GitHub:
- I know the link like https://github.com/google/gson.git,
- then I can download the
.git
files through Python language using request. (I don't want to pass by git long command)
How do I find the .git directory from GitHub or my private gitlib and how to download it?