Created
May 9, 2019 04:27
-
-
Save sjordan1975/c706d1a5ad84aab74b1e3ae98c1f3377 to your computer and use it in GitHub Desktop.
[Add Local Repo to Bitbucket] Add existing local repo to Bitbucket #git #bitbucket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a new BitBucket repository, copy the repository url to the clipboard, and then add that repository as a new remote to your local repository (full steps below): | |
| Get Repo URL | |
| 1. In your BitBucket repo, choose "Clone" on the top-right | |
| 2. choose "HTTPS" instead of "SSH" in the top-right of the dialog | |
| 3. it should show your repo url in the form git clone <repository url> | |
| Add Remote Using CLI | |
| 1. cd /path/to/my/repo | |
| 2. git remote add origin https://bitbucket.org/<username>/<reponame>.git | |
| 3. git push -u origin --all | |
| Add Remote Using SourceTree | |
| 1. Repository>Add Remote... | |
| 2. Paste the BitBucket repository url (https://bitbucket.org/<username>/<reponame>.git) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment