Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
golergka
· 13y ago · 0 comments
Strange. I'm not a git expert, but every time I try to push outdated commits to the origin, it says that I'm behind and need to pull first.
Comments
[–]
10char
13y ago
If you had the `-f` (force) flag, it overrides any sanity checks and simply accepts whatever history you give it.
[–]
davvid
13y ago
If `git config receive.denyNonFastforwards true` is configured on the remote repository then this is prevented. This is the default on modern versions of Git.