git Cheatsheet - mnth-titan-robotics/titan-2020 GitHub Wiki
git clone https://github.com/mnth-titan-robotics/titan-2020.git
Download the repository from GitHub onto your computer. (Note: we use HTTPS instead of SSH because MNTHS blocks SSH)
git branch yourBranchName
Create a branch named yourBranchName
on your computer
git add .
Make git track all untracked files on your computer
git commit -am "your message here"
Commit your changes to the git repository on your computer with a commit message "your message here"
git push origin yourBranchName
Make the yourBranchName
branch on GitHub match yourBranchName
on your computer
git pull origin yourBranchName
Copy the changes in yourBranchName
on GitHub onto your computer
git reset --hard
Undo all changes since your last commit
git clean -xdf
Delete all files that are not tracked by git on your computer