I set up a remote directory on pythonanywhere and I pushed my code from my local repository. Everything is uploaded to the remote repo except the .git folder. So I can't use git on pythonanywhere and if I clone my code somewhere else I can't use git there either. What can I do so that git push uploads the .git directory? Thank you
the .git folder contains local configurations and informations, so it's not on the remote server.
The .git directory is the repository; the directory it lives in on your local machine is just the root directory of the tree object associated with the commit you checked out. You don't push .git because push already copies everything necessary from your local repo to the remote. When you clone a repository, everything necessary from the remote is copied into your local .git folder.
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