Using version 1.0.4, I can't find any force push option. Is command line the only way to use force?
Can't push and Can't pull
The --force option must be used to push an amended commit. The above example assumes it is being executed on an existing repository with a commit history. git commit --amend is used to update the previous commit. The amended commit is then force pushed using the --force option.
To force a push to only one branch, use a + in front of the refspec to push (e.g git push origin +master to force a push to the master branch). See the <refspec>... section above for details. Force an update only if the tip of the remote-tracking ref has been integrated locally.
Keeping your local repository in syncGitHub Desktop can keep your local copy of a project in sync with the remote version by pushing and pulling commits.
While you can send pull requests from any branch or commit, with a topic branch you can push follow-up commits if you need to update your proposed changes. Be very careful when force pushing commits to a pull request. Force pushing changes the repository history and can corrupt your pull request.
After spending some time found force push in Github Desktop Mac, (not sure about Windows)
STEP-1: Switch to history, tab.
STEP-2: Then click and drag one commit over the other. Squash commit popup will come, choose accordingly.
STEP-3: Now you will be able to see force push
Hope this helps, Happy Coding!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With