Git Tutorial
Installation:
Windows: https://git-scm.com/download/win
Not Windows:
Open up terminal
Depending on your operating system, type in the following command:
Mac - brew install git
Ubuntu - sudo apt-get install git
Fedora - sudo dnf install git
Git Workflows:
Essential Git Commands:
git clone <link> - Clone a remote repository into your working directory.
Ex. git clone https://github.com/RIT-Launch-Initiative/2020-SPICA-Flight-Computer.gitgit pull - get updates from the remote repository directly.
git add <file> - add modified files to the staging area.
Ex. git add . or git add src/main.cgit commit -m "commit message" - add all files from the staging area to the local repository.
git push - add all committed files from the local repository to the remote repository.
git branch -a - view all git branches
git checkout <branch_name> - switch to a new development branch
Ex. git checkout my_branch