We're just moving to git at my work. We have a reasonably large project with some fairly large resources under version control (~500MB).
Today we tried to push a branch to a remote server and were surprised that git seemed to be trying to upload the entire project. I would have expected git to only send the deltas for the 4-5 text files that had changes (like it does for a normal push to master). Is this not how remote branches work? We used git push origin some_branch_name
, is there a better command to use in this case? Should we not be storing large resources in git? If not, how do people usually handle this scenario? Is there a better way for one developer to share in-progress work with another developer w/o committing the changes to the master branch? As it stands, we're looking at around 15 min to push a remote branch, which is really not workable. What are we doing wrong?
git push origin HEAD:some_branch_name
?Writing objects: 17% (8153/46698), 192.53 MiB | 2.46 MiB/s
git gc
on the local repository? I'm not positive that's what's going on (I'm not sure why that would lead to writing more data to the network, for example), but I've had it substantially speed up a huge variety of git operations.