![]() ![]() Where checkbox is next to the branch I want to push. Normally when I do exactly the same steps in SourceTree and I click "push" I see below window: Instead of above, all my committed changes were immediately (straight away) pushed and merged to develop on Github! The feature branch was not pushed on remote origin. You have created a new repository, added a few commits to it, and now you are trying to pull from a remote repository that already has some commits of its own. Original answer You have to do a force push, because topic branch is already published and you are rewriting history. it is not possible to push if force push flag is activated nothing happens afterwards, there is an exception in log ERROR 10:15:45,362 31 Log - Wtkiem wywoujcym musi by STA, poniewa wiele skadników interfejsów uytkownika go wymaga. After it is enabled you can check 'Force Push' check box in the 'Push' dialog. I made some commits and when I hit "push" I was expecting the feature/more-sync-logic-4 branch to be pushed to Github so that I can create pull request, review and merge to develop. 33 Update: SourceTree 1.9.1 You can enable force push in Tools/Options/Git/Enable Force Push. On my local Mac I created a feature branch from develop via iTerm by typing git checkout -b feature/more-sync-logic-4 origin/develop. I have a repository on Github (origin) with master and develop branches. 2) If the target commit has been pushed to remote, you have to push again by force. ![]() Situation A: target commit is the latest one. Yesterday I was setting up new account on macOS and the process of registering Sourcetree annoyed me so much (they force you to create Bitbucket account that I don't need) that I decided to look for another GUI alternative.Īfter initial try I reached to the following issue when pushing a local feature branch. Step1: In the sourcetree main window, locate your repo tab, and click the ' terminal ' button to open the git command console. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |