Skip to content

Git Tutorial

Nick Speer edited this page May 29, 2020 · 2 revisions

https://education.github.com/git-cheat-sheet-education.pdf

Cloning or Downloading

git clone <repo-url>

git clone https://github.com/ucfai/smash-bros

Branch

# create a new branch and switch to it
git branch <branch-name>

git checkout <branch-name>

# or in one line
git checkout -b <branch-name>

Making Changes

# add files you are working on
git add <file>

# commit the changes
git commit -m "<message>"

Pushing branch to Github

git push orgin <branch-name>

if orgin is undefined, set it with this command, then push

git remote add orgin <url>

Pulling down changes

git pull
Clone this wiki locally