J'ai créé un repo git et l'ai mis à jour avec quelques trucs. Plus tard, j'ai créé un nouveau répertoire pour ce projet et initialisé un nouveau git pour cela. Maintenant, je veux pousser les changements et remplacer les anciens dans le repo. Quand je fais git push origin master
je reçoisComment remplacer 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.
Que puis-je faire?
connexes: http://stackoverflow.com/questions/8461528/replace-github-repo-while-preserving-issues-wiki-etc –