GITHUB Work Flow

ITEM ACTION
GITHUB
  1. Login: http://github.gatech.edu/ login with GT credentials
  2. Create a new Repository (Repo):
    • Under "Repositories" tab create a new private project, e.g. "Project"
    • Select "initialize it with a README file"
LOCAL
  • Create "myrepo" LOCAL project
  • cd /var/www/html
    mkdir myrepo
    chmod -R 777 myrepo
    cd myrepo
    git init
    git pull https://github.gatech.edu/VIP-ITS/myrepo.git
    cd ..
    chmod -R 777 myrepo

  • Configure LOCAL (one time)
  • git config --global user.name "YOUR NAME"
    git config --global user.email "YOUR EMAIL ADDRESS"
    git config --global core.editor geany
    git config --global merge.tool meld

  • Check GIT state
  • git status

  • Register REMOTE on LOCAL
  • git remote add origin https://github.gatech.edu/VIP-ITS/myrepo.git
    git remote -v
    git pull origin master

  • Work on "dev" branch
  • git checkout -b dev
    git branch -v

    --- Add / Edit / Delete files ---

    git add --all
    git commit -am "My commit message - describes changes made"
    git push origin dev

  • Merge "dev" with "master" branch
  • git checkout master
    git merge dev
    git push origin master
Errors
  1. fatal: unable to access 'https://github.gatech.edu/ ...': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

    export GIT_SSL_NO_VERIFY=1
SSH keys
  1. Generate SSH key or get it from: git gui ( Help >> Show SSH key )
    ssh-keygen -t rsa -b 4096 -C "GTID@gatech.edu"
  2. Start the ssh-agent in the background:
    eval "$(ssh-agent -s)"
  3. Add SSH key to the ssh-agent:
    ssh-add ~/.ssh/id_rsa
GUIs
REF