I have got a repository at github and several branches. The whole repo is about 2 gigs. Before moving to git, I had an ant script that would checkout a folder from svn repository, build binary files and then commit back to the repository.
Unfortunately after switching to git, I can't find a simple way to do it. Every time my ant script runs, I want it to get a fresh copy of folder from remote branch and commit back to it after doing some work. I do not want to download whole repsitory ( 2 GB of Data ) everytime I run ant script.
Here is an example of how my ant script looked with SVN
- SVN CHECKOUT FROM http://project.branch15/subfolder/subfolder/subfolder
- MODIFY SOME STUFF in /subfolder/subfolder/subfolder
- SVN COMMIT BACK TO http://branch15/subfolder/subfolder/subfolder
With GIT workflow looks like
- GIT INIT
- GIT CLONE http://project.branch15 ( 2 GB )
- MODIFY SOME STUFF in /subfolder/subfolder/subfolder
- COMMIT branch 15