![]() What now?Īs said, you should really never rewrite history in such synced repositories! The errors you'll see when you do this and Git-hg Mirror can't push are along the lines of "Cannot push non-fastforwardable reference" or "Cannot push because a reference that you are trying to update on the remote contains commits that are not present locally." You'll also get the latter if you have one-way sync between two git repos and in the destination repo you committed to a branch where the source repo also added commits. ![]() I've rewritten history and I'm getting punished for it. never remove commits if you already pushed them (regardless of which source control system you do this in) because this can totally mess up syncing to the point that it should be restarted with a completely new destination repository. Whatever you do however, never rewrite already pushed history! E.g. If you use another type of configuration and you're happy with it please let us know and we'll add it here. This feature is kind of hidden for now but eventually we'll have a better, completely new UI. ![]() ![]() Want to hear a secret? Git-git mirroring works too (tested between GitHub and Bitbucket repos)! Just make sure to use either the "git to hg" or "two-way" direction and a git URL with the format "git+ /Lombiq/repo.git" (note the protocol being git+https and the URL ending in ".git").Two Mercurial repos on Bitbucket, two-way sync possible.Mercurial and Git or another Mercurial repo on Bitbucket (either way).Git repo on GitHub to/from/two-way with a Mercurial repo on Bitbucket.We tested the following configs and are using them ourselves so they're working for sure: Only HTTPS pull/push is supported, SSH won't work! If you're somebody looking for a creative solution for your software problem (especially if it's web, and even more so if it's Orchard Core/Orchard CMS) then you should definitely get in touch with us, probably right now if it's not already too late! What are the configurations that are tested and 100% working? Lombiq is a company driven by technology enthusiasts dedicated to open source software development (mostly with. Lombiq Technologies is behind Git-hg Mirror. We at Lombiq also use it to sync our own repositories (including the 100+ open source ones) so if it's broken we also feel the pain and try to fix it as soon as possible. Please keep in mind that Git-hg Mirror is a free service run in our free time - we strive to keep it in a good shape but hickups can happen. Diversity is a good thing but not in your repository! It's a bit of a hassle to integrate a repository in your own one that runs on the other VCS Git-hg Mirror makes it possible to maintain an automatically updated mirror so you (and your team!) don't have to go through the hassle of keeping a diverse version control setup. Now why is this useful? Because you might prefer to use one of these systems but you find a library, tool or anything that resides in a repo that runs on the other system. ![]() This allows you to create mirrors of repositories in the other version control system. Git-hg Mirror is a simple to use (at least this is the intention) web application to automatically keep a Git and a Mercurial repository or two Mercurial or two Git repositories in sync. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |