Using Git

Using Git
Share on:

Using Git in terminal (command line)

This a quick way to use Git and push your project to your repository on GitHub. At least that what I do and it works! This assumes that you have Git installed.

  1. Configure Git

    Need to set your email address and username.

    git config --global user.email "you@example.com"
    
    git config --global user.name "Your Name"
    
  2. To initialize or reinitialize existing Git repository

    git init
    
  3. Stage changes

    git add .
    
  4. See status of your files; staged, unstaged, modified, etc.

    git status
    
  5. Commit your changes, you’ll whatever you feel appropriate between the quotes:

    git commit -m "your notes here"
    
  6. Push/upload your changes to your github repository

    git push origin master