学习CS61B的一开始,会有lab里面讲git tutorial。这里做一个总结。
CS61B Lab1:
https://sp18.datastructur.es/materials/lab/lab1/lab1#b-git--local-repos
Using git:
https://sp18.datastructur.es/materials/guides/using-git.html
command | description |
---|---|
git init | Initialization |
git add (d: file) | add tracking file |
git status | check status |
git commit -m “message you want to record” | commit |
git log | list the whole log |
git show (passcode) | show the details |
git checkout (passcode) (directory) | get the odd staff back but the log is still stored |