• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

clone

Git Switch from HTTPS to SSH

January 20, 2022

If you have trouble cloning a github repo using https, you can tell it to switch to SSH instead.

Here’s the command.

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

I had to specify reconfigure when I ran terraform init.

terraform init --reconfigure

terraform init --reconfigure

Filed Under: Cloud, Linux Tagged With: clone, git, https, ssh, switch

AWS Copy Security Group

December 28, 2021

You can copy rules from a security group to a new security group created within the same Region.

Open the Amazon Elastic Compute Cloud (Amazon EC2) console.

  1. In the navigation pane, choose Security Groups.
  2. Select the security group you’d like to copy.
  3. For Actions, choose Copy to new.
  4. The Create Security Group dialog opens, and is populated with the rules from your existing security group.
  5. Specify a Security group name and Description for your new security group.
  6. For VPC, choose the ID of the VPC.
  7. Choose Create.

Filed Under: Cloud Tagged With: aws, clone, copy, firewall, security groups, vpc

Git Clone Multiple Accounts

November 28, 2021

How to clone repositories with multiple Github accounts.

git clone git@github.com-yourgitaccount:yourgitaccount/myrepo.git

git clone git@github.com-yourgitaccount:yourgitaccount/myrepo.git

Filed Under: Linux Tagged With: accounts, clone, git, multiple, repo

Git Clone

November 2, 2012

Git Clone is a command used to make a copy of a Git repository to your local drive. It creates a new directory and creates a clone of the repository on the local drive. In the example below, a clone of an existing repository from Github is placed on the local computer. You initiate a clone by typing the following command on the Terminal.

// old way. does not work anymore.
git clone git@github.com:username/Project.git
 
// new way. use this from this point on.
git clone https://github.com/username/Project

// old way. does not work anymore. git clone git@github.com:username/Project.git // new way. use this from this point on. git clone https://github.com/username/Project

Filed Under: Git Tagged With: clone

  • Home
  • About
  • Archives

Copyright © 2023