I got a .git directory for me to work on, supposedly containing files and data to run.
I only a see a bunch of directories (branches, hooks, info, objects, refs) and some files (config, description, HEAD), but can't figure out what to do with them.
I'm assuming I should somehow link it with GitHub, except I have no idea how.
I suppose what you got is a bare repository. In order get the files out of it, you must create a non-bare clone.
Assuming that the directory you have mentioned is located at /path/to/my/repository.git
, then by running the following command in a terminal:
git clone /path/to/my/repository.git /output/directory
you will find the contents of the repository in /output/directory/
.
(You have to replace the directory paths with actual paths on your computer.)
You should install GIT to use the GIT repository. Get it here: https://git-scm.com/downloads
After you download and install it. you can open a CMD and type
git branch --list
to see what branches are in the repo. and run
git checkout [branchename]
to build the branch filesystem.
To push to a remote, type
git remote add origin <your repository address>
and to push to your git repo:
git push origin --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With