How to click TortoiseGit

As a result, the following errors occurred.

git.exe push    "origin" master:master

To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'non-fast forward'
section of 'git push --help' for details.
To //oht-fsv1/Source/Git/Test
! [rejected]        master -> master (non-fast forward)

What's wrong?

+3
source share
1 answer

From git push:

When an update modifies a branch (or more, in the general case, ref) that is used to indicate a commit A, to point to another commit B, it is called a fast update if and only if B is a descendant of A.

In an accelerated upgrade from A to B, the set of commits that the original commit A built on top is a subset of committing the new commit B builds on top. Consequently, he does not lose history.

On the contrary, updating without fast forwarding will lose history.

, : git pull, <git push.

+8

Source: https://habr.com/ru/post/1721939/


All Articles