Skip to content

intro git

Qihong Lu edited this page Sep 12, 2018 · 9 revisions

A quick intro to Git

Git is a version control system. Here're the steps/git commands you need to know to submit your work:

  1. clone

    • example: git clone the_url_for_your_repo
      • get your assignment/lab repo
  2. add

    • example: git add a_file_name
      • add that file to the index
    • example: git add .
      • add all files to the index
  3. commit

    • git commit -m 'a_message_describing_what_you_did'
      • record changes to the repository
  4. push

    • git push
      • submit the stuff you committed to your repo

Then GitHub Classroom will collect your works from your repo automatically on Sunday night!


gc_1

Clone this wiki locally