File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,15 @@ already exists on the remote side.
136
136
not an ancestor of the local ref used to overwrite it.
137
137
This flag disables the check. This can cause the
138
138
remote repository to lose commits; use it with care.
139
+ Note that `--force` applies to all the refs that are pushed,
140
+ hence using it with `push.default` set to `matching` or with
141
+ multiple push destinations configured with `remote.*.push`
142
+ may overwrite refs other than the current branch (including
143
+ local refs that are strictly behind their remote counterpart).
144
+ To force a push to only one branch, use a `+` in front of the
145
+ refspec to push (e.g `git push origin +master` to force a push
146
+ to the `master` branch). See the `<refspec>...` section above
147
+ for details.
139
148
140
149
--repo=<repository>::
141
150
This option is only relevant if no <repository> argument is
You can’t perform that action at this time.
0 commit comments