Creé un repositorio git y lo actualicé con algunas cosas. Más tarde creé un nuevo directorio para este proyecto e inicialé un nuevo git para él. Ahora quiero impulsar los cambios y reemplazar los viejos en el repositorio. Cuando hago git push origin master
consigoCómo reemplazar git repo?
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:Username/repo2.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
¿Qué puedo hacer yo?
relacionado: http://stackoverflow.com/questions/8461528/replace-github-repo-while-preserving-issues-wiki-etc –