-
Notifications
You must be signed in to change notification settings - Fork 0
intro git
manojneuro edited this page Feb 4, 2021
·
9 revisions
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:
-
clone
- example:
git clone the_url_for_your_repo
- get your assignment/lab repo
- example:
-
add
- example:
git add a_file_name
- add that file to the index
- example:
git add .
- add all files to the index
- example:
-
commit
-
git commit -m 'a_message_describing_what_you_did'
- record changes to the repository
-
-
set your email that is associated with your github account
git config --global user.email “[email protected]”
-
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!