btmiller |
01-25-2015 12:32 PM |
It's definitely possible - you'll just have to set up two different remotes: one for gitlab and one for bitbucket. However, having two different .gitignore files is going to be somewhat tricky. I've never found a good way to do that. The best way might be to create two different branches in your clone (one with bitbucket as the origin and one with GitHub). These two branches can have different .gitignore files. The problem will be making sure changes to the .gitignore files are not overwritten when merging between the two branches. However, you can always revert any changes to .gitignore after merging.
There may be an easier way to do this, but if so I have yet to find it. Why do you need two different .gitignores? I presume you want to keep some files out of one or the other remote, but for what purpose?
|