Create new Git repository using Bitbucket & SourceTree
1. Create new repository on Bitbucket do NOT create a README or .gitignore file so repository is completely empty. Make note of the repository url. You can find it later by selecting Clone from the repository
2. Do git init in root folder of local project
3. In Sourcetree, select File...Open... and select the root folder of your project
4. If necessary, rename the Master branch to match Bitbucket (Main)
4. Commit initial changes
5. In Sourcetree, select Repository...Repository Settings. Select Remotes tab and add the url of the bitbucket repository. Make sure there are no leading/trailing spaces
6. Push the Main branch
7. You're done
Clear history to save space
$ cd myrepo
$ rm -rf .git
Delete git from project (Delete all .git folders)
$ rm -rf .git