failed to send some links to " https://github.com/fdsfsd/Project.git "

подсказка: Обновления были отклонены, так как внешний репозиторий содержит подсказка: изменения, которых у вас нет в вашем локальном репозитории. подсказка: Обычно, это связанно с тем, что кто-то уже отправил изменения в подсказка: то же место. Перед повторной отправкой ваших изменений, вам нужно подсказка: забрать и слить изменения из внешнего репозитория себе подсказка: (например, с помощью «git pull …»). подсказка: Для дополнительной информации смотрите «Note about fast-forwards» подсказка: в «git push --help». 

How to push, not taking and not merging?

  • 3
    No, the git will not let you push the changes until you take the changes, for what is the point in the gita, if everyone could push, anything and anytime? - stackanon
  • @stackanon And git push origin --force will not help? - Gikas
  • 3
    @Gikas, it will help if you are not afraid that colleagues will tear their hands off. - ixSci
  • you can send changes to the new branch - aleksandr barakin
  • Tell me, what kind of problem do you want to solve with these actions? The answer really depends on the real problem. - Nick Volynkin

1 answer 1

  1. if you don't mind creating problems with other users of the shared storage, you can overwrite the history in this shared storage by adding the -f ( --force ) option:

     $ git push -f 
  2. or you can send your changes to a new thread.

    1. It is usually convenient to create a branch locally, and then send it (under the same name) to the general storage:

       $ git checkout -b новая-ветка $ git push -u origin новая-ветка 
    2. but it is possible without creating a new local branch:

       $ git push origin текущая-ветка:новая-ветка