Push DVCS repository to master without needing codebase

Posted by Scorchin on Stack Overflow See other posts from Stack Overflow or by Scorchin
Published on 2009-10-14T22:14:25Z Indexed on 2010/03/29 1:23 UTC
Read the original article Hit count: 642

To work on a client's staging environment I have to connect through a VPN which locks all normal network traffic and prevents any connection to the Internet.

This would immediately prevent any of the "normal" VCS solutions from being used as it's not possible to gain access to the server. A solution to this would be to create a DVCS repository (git?) locally and then push changes to the master, as and when needed. There is one flaw in this plan.

The entire codebase is around 14GB. To download all of this over the internet would take some time, especially when I'm likely to be working on 3 or 4 different machines in each case. This seems silly and overkill for a DVCS.

TL;DR Can any DVCS solution allow you to push to a master server/repo without needing the codebase? Bad example: copy the .git folder (not the 14GB codebase) to another directory and push this to the master once disconnected from the VPN.

© Stack Overflow or respective owner

Related posts about version-control

Related posts about language-agnostic