Git Commands
Initiate a repository: # initialize an existing directory as a Git repository $ git init # retrieve an entire repository from a hosted location via URL $ git clone [url] Stage your files: # Show modified files in working directory, staged for your next commit git status # Add a file as it looks now to your next commit (stage) git add [file path] # If you need to add ALL the modified files at once git add . # Unstage a file while retaining the changes in working directory $ git reset [file] # Difference of what is changed but not staged $ git diff # Difference of what is staged but not yet commited $ git diff --staged # Commit your staged content as a new commit snapshot $ git commit -m "descriptive message" # Add files and Commit your staged content as a new commit snapshot $ git commit -a Manage branch & merge: # list your branches. a * will appear next to the currently active branch $ git branch # create a new...