Does git push from local to remote compress data?
git, github, version-control
Solution
Does 'git push' compress data while uploading to Remote Repo?
Yes. It pushes diff delta pack files.
Am I losing data?
No. Once you start working on a repo, you:
- checkout those packed files in a working tree
- work with added files stored in .git/objects, which aren't re-packed yet. see "Git Internals - Packfiles" for more.
If I'm trying to make a copy of the Remote Repo on multiple local machines so that multiple people can work on the same project, do I use Git Clone or Git Pull?
`git clone` for the initial copy and checkout of that repo. Then `git pull`.
Problem
My local repository has about 500 files and a total size of about 125MB. I initialized a git repository on storage provided by "http://repositoryhosting.com/". I did the following steps via Git GUI - git commit (of my local repo) - git remote add - git push It said that it uploaded onto the Remote Repo and I could see the files, but the repo now had a size of only 26 MB. I tried to git clone and git pull on two different occasions on another machine from the remote repo. They seemed to download exactly the 26MB that was on the Remote repo. But when I check the size of the folder on the machine, it shows that it is 125MB. Questions: - Does 'git push' compress data while uploading to Remote Repo? - Am I losing data? - If I'm trying to make a copy of the Remote Repo on multiple local machines so that multiple people can work on the same project, do I use Git Clone or Git Pull?