unknown option `allow-unrelated-histories'
I documented before how that option has been introduced in Git 2.9, June 2016 (as mentioned by merlin2011 in the comments)
Since Ubuntu LTS 14.04 comes with an old 1.9+ Git, you need to reference an up-to-date ppa:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt install git
That ppa (Personnal Archive Package) is the git-core/+archive/ubuntu/ppa
, and will include the latest Git 2.11 release.
Allow merging unrelated histories in git rebase
The brute-force method is to force a common root -- since you're trying to rebase roots, with no content history, make a nonce empty commit and tell git that's the parent of the histories you're merging:
git rev-list --all --max-parents=0 \
| awk '{print $0,empty}' empty=`:|git mktree|xargs git commit-tree` \
> .git/info/grafts
git rebase here
rm .git/info/grafts
Related Topics
Android - How to Receive Broadcast Intents Action_Screen_On/Off
Replace Selector Images Programmatically
How to Listen for Changes in Contact Database
Android Studio - Local Path Doesn't Exist
Difference Between Android.App.Fragment and Android.Support.V4.App.Fragment
Getting the Physical Screen Dimensions/Dpi/Pixel Density in Chrome on Android
How to Get String Width on Android
Converting JSONarray to Arraylist
How to Add a Textview to a Linearlayout Dynamically in Android
How to Pass Arraylist of Objects from One to Another Activity Using Intent in Android
Android Asynctask Threads Limits
Google Play Services Library Update and Missing Symbol @Integer/Google_Play_Services_Version
Storing R.Drawable Ids in Xml Array
Android Studio: Gradle - Build Fails -- Execution Failed for Task ':Dexdebug'
Android, Canvas: How to Clear (Delete Contents Of) a Canvas (= Bitmaps), Living in a Surfaceview
Listview Setonitemclicklistener Not Working by Adding Button
How to Compile Android Application with System Permissions
The Number of Method References in a .Dex File Cannot Exceed 64K API 17