<p>I am using git on a project, that generates lots of data-files (simulation-results). 
I am "forced" to version and track all those results in the same repository. (This is a hard requirement and can not be changed)</p>

<p>However I don't need them. We have about 50 MB for the project and 5 GB results in the repository.</p>

<p>Is it feasible for me to create a branch, delete all the results, check this branch out and only work on that branch?</p>

<p>How hard would it be (what would I have to do), to push my local changes back into the fat branch?</p>

<p>Is there a better solution to get rid of those 5 GB for my work?</p>

[{'answer_id': 71348, 'author': 'Greg Hewgill', 'author_id': 893, 'author_profile': 'https://Stackoverflow.com/users/893', 'pm_score': 3, 'selected': True, 'text': '<p>If you were to make a branch and delete the result files from the branch, then merging your branch back into master would also try to delete the results from master. A file delete is a change just like any other.</p>\n\n<p>Perhaps you could use the git submodule support to manage your code changes as a submodule of the fat repository. In this way, the fat repository would appear to contain everything, but you could work on just the small code bits independently. This may take some fiddling around to work smoothly.</p>\n'}, {'answer_id': 75975, 'author': 'SpoonMeiser', 'author_id': 1577190, 'author_profile': 'https://Stackoverflow.com/users/1577190', 'pm_score': 2, 'selected': False, 'text': '<p>If you create a branch, and delete the unwanted files in one commit, you should be able to cherry-pick any subsequent commits back into your main branch without merging the commit that deletes the data files.</p>\n\n<p>See the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-cherry-pick.html" rel="nofollow noreferrer">manual for git cherry-pick</a>.</p>\n'}, {'answer_id': 711312, 'author': 'skiphoppy', 'author_id': 18103, 'author_profile': 'https://Stackoverflow.com/users/18103', 'pm_score': 0, 'selected': False, 'text': '<p>Besides git cherry-pick, another alternative is to run git-revert on the file delete change just before merging.</p>\n'}]
['https://Stackoverflow.com/questions/71315', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1870/']