Last active
August 4, 2020 18:22
-
-
Save binaryk/a449aabb782186c02f3b to your computer and use it in GitHub Desktop.
This file contains 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
cd ~/.ssh | |
ssh-keygen -t rsa | |
cat id_rsa.pub | |
copy key | |
go to BitBucket -> Accounts -> Security -> SSH -> Add key -> Paste key | |
go to server -> Before we begin, navigate to your repository on the Bitbucket website and copy its SSH URL. This will be in the format [email protected]:<username>/<repo-name>.git | |
example: git clone --mirror [email protected]:<username>/<repo-name>.git | |
Notice the --mirror flag? As its name implies this flag creates an exact mirror of the source repository, including mapping it’s remote branches. It implies --bare, which means that our repository will not have a working copy. | |
Done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment