Is Visual Studio project in GitHub repository always available for others to download and use it or only when I'm online?
2018-12-20 13:49:57 UTC
I'm asking this because when I pushed the project in Visual Studio 2017 to GitHub, the 210 MB project was uploaded in only 3 MB zip file to download. When I unzipped it, it was only 8 MB. What's about the other 202 MB of data?
Three answers:
Chris
2018-12-20 15:31:41 UTC
The repository is on the github servers and always available.
"git push" usually ignores lots of redundant files, as specified in the .gitignore file, because it's not necessary to share them.
2018-12-20 14:54:56 UTC
A single file over 100MB or 25MB with browser is not allowed! But you should have got a warning!
You can split the 202MB file into lots of smaller ones!
2018-12-20 14:33:26 UTC
It's probably being ignored by the .gitignore. To reduce the data size when pushing and pulling from the server, git utilizes the gitignore to ignore files that have no use when copying. In VS, this typically includes obj folders, node.js libraries, bin folders/files, etc. Additionally, it reduces the amount of miscellaneous files that appear as changed. For example, when you build a project with even minor changes, the entire executable binary has changed. You wouldn't really want to see this in the git change report though, it would be meaningless gibberish. They can remove these files because they'll be auto-generated on the downloder's machine when they rebuild the project.
To view the folders/files being ignored, you can look at the .gitignore file in the root directory of your repository.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.