Skip to content

git Basics

Maeve Murphy Quinlan edited this page Jul 5, 2024 · 1 revision

If you are new to git and version control, see this "Intro to git" 30 minute course here.

Some essential git commands:

git status # check on status of current git repo
git branch NAME # create a branch called NAME
git checkout NAME # swap over to the branch called NAME
git add . # stage all changed files for commit, you can replace "." with FILE to add a single file called FILE
git commit # commit the staged files (this will open your text editor to create a commit message)
git push origin NAME # push local commits to the remote branch tracking the branch NAME
Clone this wiki locally