Skip to content

GitHub Setup

tchk24 edited this page Sep 4, 2019 · 3 revisions

GitHub Setup

  1. Sign-Up for a GitHub Account

    https://github.com

  2. Go to Python 101 Repository

    https://github.com/NIAGroup/Python101-Fall19
    Watch Repository

  3. Install Git Bash:

    https://git-scm.com/download/win
    Recommended: 32bit version
    Choose all default settings

  4. While inside of the git bash commandline, modify proxy to support github access by executing

    git config --global http.proxy http://10.7.211.16:911

    Note: Git bash will be used to make updates to the repository and submit them to the remote repository

  5. Clone Repository

    Inside Git Bash commandline clone the Python-101-2019 repo
    git clone https://github.com/NIAGroup/Python101-Fall19.git

    List all files in your directory
    ls

    Change directory to the Python 101 repository you just cloned
    cd Python101-Fall19

  6. Create a Branch of the Repository

    git checkout -b <branch name>

  7. Create Your Directory and a Text File

    Make a directory called "your name"
    mkdir <your name>

    Change directory to the directory you just created
    cd <your name>

    Create a file called "foo.txt"
    touch foo.txt

    List the files in your directory. You should see the file foo.txt
    ls

  8. Add, Commit and Push Your Changes to Your Branch Repository

    Stage your files
    git add .

    Commit the changes you've made and add a message with the changes you've made
    git commit -m "<Comment describing what change you performed>"

    Push your changes to your local branch
    git push origin <branch name>

Clone this wiki locally