rebase

SVN2Git object reference error

梦想的初衷 提交于 2019-12-02 20:08:32
问题 My problem: Migration by an Ubunut VM in Windows; Windows had a blue screen of death; Windows restarted; the migration was damaged! ~/folder$ svn2git --rebase error: refs/remotes/svn/some_branch does not point to a valid object! fatal: git cat-file 81974ef70e6b9dba85295bf7341dd6808c03250d: bad file cat-file commit 81974ef70e6b9dba85295bf7341dd6808c03250d: command returned error: 128 command failed: git svn fetch I already tried to fix my problem like mentioned in these answers: https:/

Git rebase with renamed files

落爺英雄遲暮 提交于 2019-12-02 19:26:40
I've got a branch that renames many files, and I'm trying to rebase it onto master where the original files have been modified (preferably without this devolving into a manual conflict-resolution nightmare). Situation I've been porting a JavaScript project to TypeScript, in my local typescript branch. All of the .js files have now become .ts files, and some of the syntax has been upgraded. Meanwhile, changes to the original .js files have happened on the master branch. I want to rebase my typescript branch onto master -- but the changes are not merging correctly, as the file renames hadn't

git svn rebase resulted in “byte order is not compatible” error

大城市里の小女人 提交于 2019-12-02 19:04:46
Following is the error I am getting when I tried 'git svn rebase': Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380, at /usr/lib/perl5/5.10/Memoize/Storable.pm line 21 The version of perl I am running is: $ perl --version This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int (with 12 registered patches, see perl -V for more detail) When I searched the web for " Byte order is not compatible " and I get numerous hits that shows the Perl doc that says: What this means is that if you have data written by Storable 1.x

In Mercurial what's the difference between hg graft and hg rebase

佐手、 提交于 2019-12-02 18:54:39
I know Rebase is a (bundled) extension, while Graft is a core feature (that replaced the Transplant (bundled) extension). graft is documented as: copy changes from other branches onto the current branch This command uses Mercurial's merge logic to copy individual changes from other branches without merging branches in the history graph. This is sometimes known as 'backporting' or 'cherry-picking'. rebase is documented as: Rebase allows moving commits around in Mercurial's history (using a series of internal merges). This has many uses: moving changesets between branches "linearizing" history

git - update fork's master & rebase my branch onto it?

喜欢而已 提交于 2019-12-02 18:33:15
I have forked a github project, then cloned it locally. I then made some changes in a new branch on my_github/the_project repo. I then added and committed the changes and pushed to my github repo and submitted a pull request. The owner has received my request and would like me to "rebase onto master" to get the latest changes. How do I do this? Initially I thought I could just git fetch and rebase master from within my current branch (as most posts I found advise...), but git fetch didn't do anything. Now I've realized that it is presumably because I'm still fetching from my_ github/repo clone

Git: How to rebase and squash commits from branch to master?

让人想犯罪 __ 提交于 2019-12-02 17:34:35
I'm trying to rebase and squash all my commits from current branch to master. Here is what I'm trying to do: git checkout -b new-feature make a couple of commits, after it I was trying: git rebase -i master in this case commits will remain in new-feature branch git checkout master git rebase -i new-feature It gives me and edit window with noop message. I know about command: git merge --squash new-feature But I'm currently working on learning of rebase command. When rebasing, Git will not move commits to another branch. It will move the branch including all its commits. If you want to get the

Merging multiple branches with git

拈花ヽ惹草 提交于 2019-12-02 17:09:42
I have 2 local branches called "develop" and "master"; they are similar. On my company's server there's one "main" repo (production) and several branches that were made by other developers: $ git branch -a * develop master remotes/origin/HEAD -> origin/master remotes/origin/some-test remotes/origin/feature1 remotes/origin/feature2 remotes/origin/master How can I merge remotes/origin/feature1 and remotes/origin/feature2 into my local "master" branch, copy that all into "develop" and start working with actual code in my "develop" branch? git checkout master git pull origin feature1 feature2 git

Error with git rebase (“could not apply…”)

六月ゝ 毕业季﹏ 提交于 2019-12-02 16:12:51
I'm the administrator of the GitHub repository https://github.com/plison/opendial . I would like to reduce the number of commits on the repository, since the repository already has a few thousand commits, many of whom are minor debugging changes that could easily be squashed together (especially the ones that are a few years old). I'm therefore trying to apply rebasing in order to squash together part of my commits. However, I've experience the following issue: When I type e.g. git rebase -i HEAD~10 , I get a quite long number of commit lines (much more than 10) in the interactive editor. What

Git - Moving Pushed Commits to a Different Branch

自作多情 提交于 2019-12-02 16:11:39
My boss decided recently to try out an outsourcing group "for increased capacity" as we modify an existing application to add new features. Despite my concern that the group he chose didn't seem to communicate well and wasn't asking enough questions to truly understand and be effective, we went with them anyway. We set them up to collaborate on our Git repository (hosted on GitHub). We created a branch just for them (TheOutsourcedBranch, we'll call it) and requested that they to do all of their work within this branch. Additionally, we asked that they push their commits at the end of each day

Git rebase one branch on top of another branch

强颜欢笑 提交于 2019-12-02 16:09:57
In my git repo, I have a Master branch. One of the remote devs created a branch Branch1 and had a bunch of commits on it. I branched from Branch1 , creating a new branch called Branch2 ( git checkout -b Branch2 Branch1 ) such that Branch2 head was on the last commit added to Branch1 :(Looks like this) Master--- \ Branch1--commit1--commit2 \ Branch2 (my local branch) Branch1 has had a number of changes. The other dev squashed his commits and then added a few more commits. Meanwhile, ive had a bunch of changes in my branch but havent committed anything yet. Current structure looks like this: