Unfortunately, developers often wrongfully assume SourceTree does not support this feature. I suppose this is to prevent people new to the GIT versioning system from performing destructive operations. WS-193.4932.10, JRE 11.0.4 10-b520.2å4 JetBrains s.r.o. For some reason Atlassian SourceTree not only disallows force push by default, but actively hides the feature. Git -no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential. Make a commit Push it Amend the commit Try to force push it. Please make sure you have the correct access rights Pushing to Permission denied (publickey).įatal: Could not read from remote repository. what to do: git -no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v -tags -set-upstream origin refs/heads/master:refs/heads/master If you are using github and have enabled 2 factor authentication, you need to enter a Personal access token instead of your password. Site design / logo 2023 Stack Exchange Inc user contributions licensed under CC BY-SA. I've never done a force push since -new-branch was introduced, and never needed it to combine unrelated repositories or push a two-headed branch (a force pull is much safer). Go to File -> Settings -> Version Control -> Git -> Check 'Use credential helper'. The first is to right-click (or context-click) on a commit and choose Rebase children of interactively.I agree with Ry4an that this option is more dangerous than useful. There are two ways to start an interactive rebase in Sourcetree. When I push the code it gives this error. I wasn't able to find a way to do a hg push -force proper via the SourceTree dialogs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |