Merge Parallel Fork - grnet/e-science GitHub Wiki
-
git commit -m'commit message'
any working directory changes orgit stash
if you intend to apply them after the merge. (this is necessary if you don't want to lose working directory changes in step 2) -
git checkout <branchname>
(eg.git checkout develop
) for the branch you intend to merge into. -
git status
to check everything is ok.
-
git remote add <friendlyname> <git url>
(eg.git remote add ioannisstenos https://github.com/ioannisstenos/e-science.git
) git fetch <friendlyname>
-
git merge <friendlyname>/branch
(eg.git merge ioannisstenos/develop
) -
git push
if needed to update your origin.
sudo apt-get install meld
git config --global diff.tool meld
git config --global difftool.prompt false
git config --global merge.tool meld
git config --global mergetool.prompt false
git config --global mergetool.keepBackup false
git difftool | git mergetool