How to Push Code to Bitbucket using Sourcetree
- George Apostolov
How to Push Code to Bitbucket using Sourcetree: step-by-step guide
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!
Quick answer: To push code to Bitbucket using Sourcetree, open your local repository, verify the remote repository paths settings, enter a commit message, commit the changes, and finally use the push button in the toolbar to select the correct remote and branch before pushing your code.
About this Bitbucket tutorial
Upload your code to Bitbucket seamlessly by configuring remote paths, committing changes, and pushing your branch using Sourcetree. This guide shows how to push Code to Bitbucket using Sourcetree in 9 steps, starting with "Launch Sourcetree. Open the local repository you want to push" and finishing with "Click 'Push' to push your code. Your code is now pushed to your Bitbucket repository!". The interactive demo above is a click-through copy of the real Bitbucket interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to push Code to Bitbucket using Sourcetree?
9 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your Bitbucket data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under Bitbucket and Sourcetree. Related guides: How to Push Codes to Bitbucket, How to Push Files to Bitbucket Repositories and How to Raise a PR in Bitbucket. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





