git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git
# Make a bare mirrored clone of the repository
cd repository-to-mirror.git
git remote set-url --push origin https://github.com/exampleuser/mirrored
# Set the push location to your mirror
git push --mirror
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
#!/bin/bash | |
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
git checkout $latesttag |
If you have a .pem (Privacy Enhanced Mail) and .key file, you can update an SSL certificate in AWS using the AWS Certificate Manager (ACM). Here are the steps you need to follow:
- Access the AWS Console and navigate to AWS Certificate Manager.
- Select the region where you want to manage your certificate.
- On the ACM page, click 'Provision certificates' and then 'Get started' under 'Import a certificate'.
- On the import page, you need to fill in three fields: Certificate body, Certificate private key, and Certificate chain.
If your .pem file includes three distinct parts (usually identified by "BEGIN CERTIFICATE" and "END CERTIFICATE" for each certificate), it contains the server certificate (your own certificate), followed by the intermediate certificate chain.
5. In the 'Certificate body' field, copy and paste only the first block of your .pem file, which corresponds to your server certificate.