Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to merge two repositories in github

git merge master-holder --allow-unrelated-histories
Comment

can i merge two repositories github

$ cp -R my-plugin my-plugin-dirty
$ cd my-plugin-dirty
$ git filter-branch -f --tree-filter "zsh -c 'setopt extended_glob && setopt glob_dots && mkdir -p plugins/my-plugin && (mv ^(.git|plugins) plugins/my-plugin || true)'" -- --all
$ cd ../main-project
$ git checkout master
$ git remote add --fetch my-plugin ../my-plugin-dirty
$ git merge my-plugin/master --allow-unrelated-histories
$ cd ..
cd ..
$ rm -rf my-plugin-dirty
Comment

PREVIOUS NEXT
Code Example
Shell :: install git on windows 
Shell :: get unix time from date 
Shell :: xfce ubuntu server disable suspend 
Shell :: ffmpeg linux capture desktop 
Shell :: linux change default gateway 
Shell :: create public key linux 
Shell :: shell scripting 
Shell :: linux tar.gz 
Shell :: fix merge conflict in package-lock.json 
Shell :: install wordpress on xampp 
Shell :: linux compress a pdf 
Shell :: bash $! command 
Shell :: grep or match 
Shell :: docker compose install 
Shell :: how to create an alias in bash 
Shell :: instal rust lang on linux 
Shell :: clone github project / checkout a single branch 
Shell :: how to exclude .ide directory in gitignore 
Shell :: pendrive bootable using terminal 
Shell :: psneuter download 
Shell :: uncommitted modifications to Homebrew/homebrew-core 
Shell :: composer install delete from parameters.yml symfony 3 
Php :: display wordpress error 
Php :: phpmailer utf8 charset 
Php :: generate random unique hex color code using php 
Php :: phpinfo file 
Php :: how to migrate a specific table in laravel 
Php :: wordpress debug mode enabled 
Php :: laravel 8 previous page 
Php :: get the string after a character in php 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =