push - What does this git output (forced update) mean? -


in following scenario working on private feature branch, push in order make available between own different machines. both develop , master, 1 might expect, shared branches, , integrity important. when saw output, i'm different see, sort of terrified. did somehow force changes pushed other 2 branches (in case need notify others quickly), , not branch working in? , if not, output meant indicate?

maurice@debian:~/a_project$ git push -f [...]  + e3d41a7...e71be58 feature/policies-redesign -> feature/policies-redesign (forced update)  + 3fa3bf8...9142dea master -> master (forced update)  + a01ab9a...8403461 release -> release (forced update) 

as @miqid mentioned in comments, documentation git-push says:

note --force applies refs pushed, hence using push.default set matching or multiple push destinations configured remote.*.push may overwrite refs other current branch (including local refs strictly behind remote counterpart). force push 1 branch, use + in front of refspec push (e.g git push origin +master force push master branch). see <refspec>... section above details.

the relevant lines in ~/.gitconfig work machine made behave differently home machine:

[push]   default = current 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -