Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
example_command_gifs
Git_Cheat_Sheet.pdf
Git_Quick_Ref.pdf
README.md
git_github_slides.pdf

README.md

Introduction to Git and Github

This is a brief introduction to git and github. Conceptual overview slides are available as well as a quick reference guide and a more comprehensive command list.

Below are examples of the more common commands you're likely to used regularly.

Most common commands

git status
see what files are ready to be made into a "snapshot" (committed) and which ones are not being kept track of
git status

git init
create a new git repository for the first time (will not add any files)
git init

git add
add file(s) to the list of files that should be made into a "snapshot" (committed) git add

git commit
take a "snapshot" of all currently tracked project files. Files need to be "prepped" (staged) for commit using git add beforehand.
git commit

git log
see the full historical timeline of the project
git log

git push
send latest local changes to a remote location (e.g. github)
git push

git pull
get the latest changes from a remote location (e.g. github)
git pull

git clone
duplicate a remote repository (e.g. github) on your local computer
git clone

git branch
create a new independent "timeline" for the project
git branch

git revert
undo changes by reversing any specific "snapshot" (commit)
git revert

forking
copy a remote repository on github, to your own remote account on github
git fork

pull request
notify a remote repository owner you would like them to review+incorporate your additions
pull request

You can’t perform that action at this time.