Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I forked and cloned the OpenCV repository

yea, ok. but that means, you're on the master branch locally, on your box now. before adding or changing anything, do:

git checkout 3.4   # switch from master to 3.4
git checkout -b my_new_commit   # make a new branch for your changes (with a nice name)

then add / change files, commit and

git push origin my_new_commit

(where "origin" is your forked opencv repo)

then change the base branch on the github page to 3.4, and you should be ok ;)

---------------------------------------------------------------------------------------------------

if you already are in the mess you show above (started from wrong branch), you will have to rebase it

git rebase -i --onto upstream/3.4 upstream/master

(check list of your commits, save and quit (Esc + ":wq" + Enter)

((and yea, oh my, getting out of bloody vim....))

and do a forced push:

git push -f origin my_new_commit

gl ;)