Skip to main content
Home
badllama.com
  • Search
  • Log In

github git

Github basics

cpeters's picture

Thu, 12/29/2016 - 11:13 by cpeters

Setup


git clone https://github.com/[USERNAME]/[PROJECT].git
git remote set-url origin git@github.com:[USERNAME]/[PROJECT].git

Add to .bash_profile:
    ----------------
    if [ -z "$SSH_AUTH_SOCK" ] ; then
              eval `ssh-agent -s`
                ssh-add /home/ec2-user/.ssh/id_rsa_github
                ssh-add -l
        fi
    ----------------
Log out & log back in

ssh -T git@github.com

Update your entire repository

Tags: 
github git
  • Read more about Github basics
Powered by Backdrop CMS