We have a large solution (about 1.5gb) in size on Bitbucket, in which resx
files sit in 3 seperate folders. From this repository I would like to be able to push all of the resx
files in to another repository (i.e. translation repository).
This is so translators can work on these files seperately (in isolation) and then merge them back in to the original repository.
My initial idea was to create the second repository with a .gitignore
, as per answer here, that ignores everything but the resx files.
# Ignore everything
*
# Don't ignore directories, so we can recurse into them
!*/
# Don't ignore .gitignore
!.gitignore
# Now exclude our type
!*.resx
We could then use (as per answer here) to mege files between them?
$: git remote add local ../AnotherRepo
$: git fetch local
$: git merge local/master
However, I assume that this would see the two repositories as two sperate file structures with their own seperate histories etc?
Is there a more efficient way I can use git to achieve the above and keep the two repositories in sync and merge between them? Ideally use the translation repository as a sub repository of the main repository?