git-fast-import

why git fast-import file modes are hardcoded?

馋奶兔 提交于 2019-12-24 07:27:44
问题 I'm trying to convert my CVS repository into GIT and I faced with strange issue: git fast-import has hardcoded file modes 100755 and 100644, otherwise it dies. source: p = get_mode(p, &mode); if (!p) die("Corrupt mode: %s", command_buf.buf); switch (mode) { case 0644: case 0755: mode |= S_IFREG; case S_IFREG | 0644: case S_IFREG | 0755: case S_IFLNK: case S_IFDIR: case S_IFGITLINK: /* ok */ break; default: die("Corrupt mode: %s", command_buf.buf); } // https://github.com/git/git/blob/master

How do I import a range of commits I git fast-exported to a file with fast-import?

纵然是瞬间 提交于 2019-12-11 17:53:52
问题 I exported a range of commits (a branch) via git fast-export using: $ git fast-export master...zzz-utumno-refactoring_master > my_original_utumno_r\ efactoring_master_branch_before_rebases Now I am trying to reimport it. The closest I got was: $ cat my_original_utumno_refactoring_master_branch_before_rebases | git fast-im\ port fatal: Branch name doesn't conform to GIT standards: master...zzz-utumno-refacto ring_master fast-import: dumping crash report to .git/fast_import_crash_4268 Edit: had

The right way to convert from bazaar to git and sync them

时光毁灭记忆、已成空白 提交于 2019-12-10 14:48:20
问题 I have a development repository in bazaar and I want to convert it to git and keep it synced. I need this because I will be sharing my code with someone who doesn't know bazaar. first I needed to convert my bazaar repo to git. I googled around and I found this blog which mentions simple steps to convert from bazaar to git. But when I tried to run bzr fast-export it says there is no such command. I tried installing bzr fast-export, by sudo apt-get install bzr-fastexport . Seems I actually have

How can I import a 72GB dump file into git?

女生的网名这么多〃 提交于 2019-12-09 13:30:01
问题 I have migrated an old cvs repository with cvs2git (cvs2svn). The resulted dump file is now 72GB big and my trials to import the dump via git fast-import always fail because of an out-of-memory error: fatal: Out of memory, malloc failed (tried to allocate 6196691 bytes ) fast-import: dumping crash report to fast_import_crash_13097 error: git-fast-import died of signal 11 Whereby my System has 32GB RAM and 50GB swap. I am running the import on a Red Hat 5.3 with Git 1.8.3.4 (gcc44, python2.6.8

Git clone bare repo without blobs

我只是一个虾纸丫 提交于 2019-12-01 11:03:54
On my git repository, I use an algorithm to assign every commit one or more unique version numbers, based on branch names and tags. I want to use this mechanism with another large repository, that I would like to clone without transferring any files. A bare clone helps me to get rid of the working copy of the blobs, but it still downloads them from the server. A shallow clone with --depth 1 skips most blobs, but also skips downloading the metadata for all commits except one. Is there something like git fast-export --no-data which I can use on the client-side to get the graph information

Git clone bare repo without blobs

流过昼夜 提交于 2019-12-01 09:21:13
问题 On my git repository, I use an algorithm to assign every commit one or more unique version numbers, based on branch names and tags. I want to use this mechanism with another large repository, that I would like to clone without transferring any files. A bare clone helps me to get rid of the working copy of the blobs, but it still downloads them from the server. A shallow clone with --depth 1 skips most blobs, but also skips downloading the metadata for all commits except one. Is there

Git/GitHub import from SourceAnywhere

痞子三分冷 提交于 2019-11-28 06:24:54
问题 We currently use SourceAnywhere Hosted as our version control server. I'm looking to migrate over to GitHub, and would really like to preserve our 8+ year history. Has anyone else successfully completed this migration and care to share their tools/process? Now, assuming that this hasn't been done before, I suppose I'm looking at writing a git fast-import script using the SourceAnywhere SDK or command line client. Being new to git, are there any existing scripts or resources you could direct