Preparing your Lab
AllScienceTools
AllScienceTools
git statusCheck changes
git add [file]Stage a file
git add .Stage all changes
git commit -m "msg"Commit staged changes
git branchList branches
git branch [name]Create branch
git checkout [name]Switch branch
git merge [branch]Merge into current
| git reset [file] | Unstage a file, keep changes | |
| git reset --hard | Discard ALL local changes | |
| git revert [commit] | Create new commit reversing changes | |
| git stash | Temporarily store modified files |