All Projects → capslocky → git-rebase-via-merge

capslocky / git-rebase-via-merge

Licence: MIT license
Fix rebase conflicts with minimum pain.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to git-rebase-via-merge

git-picked
List merged and cherry-picked branches
Stars: ✭ 30 (-26.83%)
Mutual labels:  merge, rebase
PixelGlitch
Image glitch visualization using various Pixel Sorting methods for Processing
Stars: ✭ 25 (-39.02%)
Mutual labels:  merge
jdime
syntactic merge tool for java
Stars: ✭ 14 (-65.85%)
Mutual labels:  merge
Mergo
Written by Dario Castañé.
Stars: ✭ 1,808 (+4309.76%)
Mutual labels:  merge
HacktoberFest-HelloWorld
All your PRs will be merged !! 😊
Stars: ✭ 24 (-41.46%)
Mutual labels:  merge
Nbdime
Tools for diffing and merging of Jupyter notebooks.
Stars: ✭ 2,135 (+5107.32%)
Mutual labels:  merge
excel-merge
A PHP library to merge two or more Excel files into one
Stars: ✭ 26 (-36.59%)
Mutual labels:  merge
Active Directory Scripts
Making my local storage of useful AD Scripts available to everyone.
Stars: ✭ 46 (+12.2%)
Mutual labels:  conflict
php-merge
Php library to merge text. 3 way merge like git in php.
Stars: ✭ 26 (-36.59%)
Mutual labels:  merge
Pdfsam
PDFsam, a desktop application to extract pages, split, merge, mix and rotate PDF files
Stars: ✭ 1,829 (+4360.98%)
Mutual labels:  merge
markdown-to-document
A Markdown CLI to easily generate HTML documents from Markdown files
Stars: ✭ 28 (-31.71%)
Mutual labels:  merge
zip
PHP ZipArchive toolbox
Stars: ✭ 30 (-26.83%)
Mutual labels:  merge
diffy
Tools for finding and manipulating differences between files
Stars: ✭ 47 (+14.63%)
Mutual labels:  merge
Aehnlich
Show/Merge differences in directories and their content (text files) in Light/Dark designs
Stars: ✭ 73 (+78.05%)
Mutual labels:  merge
webgrabplus-siteinipack
Official user supported WebGrab+Plus Siteini.pack repo
Stars: ✭ 133 (+224.39%)
Mutual labels:  merge
winmerge2011
Fork of WinMerge which has a different set of features
Stars: ✭ 36 (-12.2%)
Mutual labels:  merge
Winmerge
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
Stars: ✭ 2,358 (+5651.22%)
Mutual labels:  merge
treediff-rs
Extract differences between arbitrary datastructures
Stars: ✭ 52 (+26.83%)
Mutual labels:  merge
git-json-merge
A git merge driver that use xdiff to automatically resolve merge conflicts in json files. This project was inspired by git-po-merge.
Stars: ✭ 86 (+109.76%)
Mutual labels:  merge
porthog
Identify which process is using a specific port.
Stars: ✭ 27 (-34.15%)
Mutual labels:  conflict

git rebase via merge

Have you ever rebased a branch resolving many conflicts on multiple commits?
Yes, that's a sad story.
It wouldn't be so sad, if it was a merge instead, because in case of merge we have to fix only final conflicts in just one step.

method

So here is an idea how to how make potentially hard rebase easier:

  1. Start a hidden merge
  2. Resolve conflicts and save hidden merge result
  3. Perform a standard branch rebase, but with automatic conflict resolution
  4. Restore hidden result as single additional commit

This script implements this approach as simple dialog and applicable on Linux / Mac / Windows (git-bash).

setup

First, get the script and make it executable

curl -L https://git.io/rebase-via-merge -o ~/git-rebase-via-merge.sh
chmod +x ~/git-rebase-via-merge.sh

Change default base branch if needed by editing this line

nano ~/git-rebase-via-merge.sh
default_base_branch='origin/master'

usage

Every time you want to do rebase, just run

~/git-rebase-via-merge.sh

instead of

git rebase origin/master

notes

If you want to test this script, just run it on temp branch

git checkout -b test-of-rebase-via-merge

Also you can specify base branch like this:

~/git-rebase-via-merge.sh origin/develop
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].