To push code to Bitbucket using SourceTree, follow these clear steps:
- Launch Sourcetree. Open the local repository you want to push.
- Go to the 'Repository' settings menu.
- Under the 'Remotes repository paths' tab, ensure there’s a remote called 'Origin' and the URL/Path should be your Bitbucket repository URL.
- Click 'OK' to save.
- Enter a commit message.
- Click 'Commit' to commit changes.
- Click the 'Push' button in the toolbar.
- In the 'Push' dialog, ensure the correct remote is selected, and select the branch you want to push.
- Click 'Push' to push your code. Your code is now pushed to your Bitbucket repository!