plf3!
Git Reference



    Git install instructions: install, create project, commit files.
  1. Download and install git.
  2. Initial Config.
  3. Create a Project
  4. Add and Commit files to the project.
  5. Make Changes and Commit the File.
  6. View Status and Commit Logs
  7. More from: thegeekstuff.com

Command:Meaning:
which/whereis gitShows where git pkg resides.
git --versionShows version
git --helpShows version
git config --global user.name "Git Admin"Set admin name (added to ~/.gitconfig)
git config --global user.email "email@address"Set admin name (added to ~/.gitconfig)
git config --listShows info in ~/.gitconfig that you added (e.g., user.name and user.email.
git diffshows diff of files for which there is a diff between current version in folder and most recent push.
git initCreates .git folder in pwd
git add . | filenameAdd a file to the commit list.
git commitCommit add list (will open editor to add commit comment).
git commit -m 'commit message here'Commit add list
git commit -a -m 'commit message here'Commit add and commit at same time (with message in this case).
git initCreates .git folder in pwd
git log filenameView the history of a file (optional).
git statusCheck the status of the project (indicates if anything awaits add/commit).