I set up a git repository and push,pull were working fine 2 days back. this is the first time I am using git and version control systems Now today when I copied some files in it and started pushing them,I noticed it was pushing 90mb data.I was genuinely surprised how this can be. Later I found that 90 mb size was due to .git folder. What is the reason of this? Am i doing something wrong? How can I stop pushing .git folder?
When above thing was not working i created a new folder and set up clone of my rep开发者_如何学Pythonository.I fetched my repository in it and it came fine. When I ran git status,it showed my full home folder as untracked files. Why is this happening?
When you push changes what happens is what you expect: it only transfers minimal the required changeset to the remote repository, so if you transfered 90 Mb it's because 90 Mb were needed.
The .git folder holds all the information about changeset, commits, and other info, and is not transfered at each push.
Not so sure your case isn't already covered here. I refer to this (Git for beginners: The definitive practical guide) a lot - it's comprehensive and compact too.
精彩评论