$ cd fork-cobratoolbox/binary
$ git reset --hard origin/master
$ git submodule update
--
---
You received this message because you are subscribed to a topic in the Google Groups "COBRA Toolbox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cobra-toolbox/gHJfg663F0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cobra-toolbox+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ cd fork-cobratoolbox
$ git checkout master # make sure you checked out the master branch
$ git reset --hard origin/master # this reset the master branch to the head of the master branch in origin (your fork in this case)
$ git remote add upstream git@github.com:opencobra/cobratoolbox.git # this adds the remote of the opencobra repo (this should already be there)
$ git fetch upstream # this fetches all the new updates from the opencobra repository
$ git merge upstream/master # this updates the master branch locally
$ git reset --hard upstream/master # this reset the master branch if the merge failed (optional)
$ git submodule update --init # this updates the submodules
$ git checkout develop # don't forget to now checkout the develop branch
$ git merge upstream/develop # this updates the develop branch locally
$ git reset --hard upstream/develop # this reset the develop branch if the merge failed (optional)
$ git submodule update --init # this updates the submodules
fatal: No current branch.
If I try to commit
$ git commit
HEAD detached from upstream/develop
Changes not staged for commit:
modified: binary (modified content)
no changes added to commit
============
$ git status
HEAD detached from upstream/develop
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: binary (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
============
If I try to repeat your instructions, I get an error message with checkout
$ git checkout master
error: The following untracked working tree files would be overwritten by checkout:
binary/glnxa64/lib/libminos.a
binary/maci64/lib/libminos.a
Please move or remove them before you switch branches.
Aborting
================
Any suggestions on what to do now?
Thank you very much.
Yours,
Uri David
$ cd fork-cobratoolbox/binary # make sure you go into the binary submodule
$ git stash # stash any changes
$ git reset --hard origin/master
$ cd fork-cobratoolbox # make sure you are in the root of the fork
$ git checkout -- binary/glnxa64/lib/libminos.a
$ git checkout -- binary/maci64/lib/libminos.a
$ cd fork-cobratoolbox # make sure you are in the root of the fork
$ git clean -fd
$ git reset --hard origin/master
$ rm -rf fork-cobratoolbox
--
---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbox+unsubscribe@googlegroups.com.