-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
None
-
macOS 10.12.6 (16G29)
Git 2.14.1 (from Homebrew)
As described by Atlassian itself, `git push -force` can be dangerous; there is a safer `-force-with-lease` flag, though:
https://developer.atlassian.com/blog/2015/04/force-with-lease/
This requires you to have the current state of the branch you're pushing "with force" to fetched or the push will be rejected.
For some time now I've been pushing with `--force-with-lease` when rebasing my feature branches and I have to do it from the command line.
I'd like for SourceTree to be able to enforce `--force-with-lease` and disallow `-force` so that I always have to fetch if the data I see on the screen is out of date before pushing.
I've originally noticed the issue reported for the Windows version of SourceTree: SRCTREEWIN-3045