I added the remote:
git remote add bruzzlee address@hidden:Bruzzlee/paparazzi.git
I added the remote
git remote add paparazzi git://github.com/paparazzi/paparazzi.git
What remotes did you already have? You probably have duplicate remotes
now (e.g. origin as a duplicate of bruzzlee, depending on where you
initially cloned from.
git push bruzzlee master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to
To prevent you from losing history, non-fast-forward updates were
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
What state was your repo in when you did that? That was before you
reset your branch to before the commit where you removed everything?
git pull paparazzi master
* branch master -> FETCH_HEAD
TODO | 140 ---
conf/Makefile.lpc21 | 2 +-
conf/Makefile.stm32 | 30 +-
git reset --hard HEAD^
HEAD is now at 03ba316 Try to ony copy gyro data when it's fresh
(seams it does something but, I can't see any result)
This resets your branch to one commit before, so it basically sets
your master to the commit before the merge. Not what you want...
You probably want to throw away the commit where you deleted everything...
I can't tell you exactly what to do, because I don't know what commits
you have locally, what you already did, etc...
Have a look at your history and where your current master is with
Maybe GIT is not made for that, what I want to do:
- I have a "old" project folder (different version as my fork)
- I want to upload it, so that other interested guys are able to download
- Maybe It will be the best way to upload it via ZIP or else
Whatever you like... but it might be easier to checkout your stuff if
you have it in a branch in your git repo...
How can I completely reset my fork? (If its possible)
- Reset fork
- Download fork
- change the downloaded fork manually (replace all files locally)
- push the new version
Reset to what? The Paparazzi master?
If you don't have anything on your fork that you want to keep:
* Quick'n dirty version: delete your fork and create a new one.
* Or the git way: just reset your master to the same as the Paparazzi
git fetch paparazzi
git reset --hard paparazzi/master
git push bruzzlee --force
The last command will push your local master to your bruzzlee fork and
overwrite your master there, so you will loose the commits on your
current own master that are not in the main branch. Normally you
REALLY DO NOT want to do this!
Otherwise... you have commits you want to keep, it depends on what you
have in you local repo.
You have two commits in your fork on github, I assume you want to keep
the first one and get rid of the second one where you deleted
everything. Also assume you don't have any other commits locally you
want to keep.
You have two options:
1. reset your master to the first commit (completely loosing the
second one where you deleted everything)
2. "undo" the changes of the second commit
Normally you should NEVER do version 1, since someone could have
pulled your commits in already. But in your case I think it is safe to
assume that noone already pulled in your commit removing everything,
so you can go for version 1.
git fetch bruzzlee
git reset --hard bruzzlee/master^
git push bruzzlee --force
Paparazzi-devel mailing list