Git Commands

Embed Size (px)

DESCRIPTION

A list of important Git commands.

Citation preview

git clone URL - to copy the repoThe following commands only work when you're in your github repo foldergit status - show us the difference between local and server repogit add index.html - takes local file and puts it on the server repo (no commit or push yet)git commit -m "added index.html" - lock it into the repo.. it's still currently not sync'd to the server repogit push - pushes the change to the repogit pull - pulls server file to local... so whatever changes are push'ed to the server, it gets pulledgit add . - adds everything in your directorygit add A - adds allgit commit - m "made changes"git pushgit - shows all commands and what they dogit branch - to see the mamstergit branch feature1 - whatever copy you're on when you call git branch, it will create a copy of that and call it feature1git checkout feature1 - checksout feature1git statusgit add Agit commit -m "added new module"