Skip to content

intro git

manojneuro edited this page Feb 4, 2021 · 9 revisions

A quick intro to Git

If you want to learn Git more systematically, please check the resource page

Here's a concise intro to linux commands

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. set your email that is associated with your github account

  5. push

    • git push
      • submit the stuff you committed to your repo
      • to verify your works has been pushed to your repo successfully, you can view your notebook in a browser

Then GitHub Classroom will collect your works from your repo (the master branch) automatically on Sunday night!


Clone this wiki locally