From db4f3d7e5db75911ba900348e6ef116a13db4dba Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Fri, 26 Feb 2016 07:21:59 -0500 Subject: [PATCH] explain committing --- readme.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/readme.md b/readme.md index 48cf1b6..46b9863 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,22 @@ ## Committing: +Making a commit in git involves 3 steps: + +Step 1. Stage the files to be committed +Step 2. make a commit and leave a Message +Step 3. Push the commit to the remove server + +Step 1: + `git add .` OR `git add path/to/file` OR `git add *.png` +***doing git add . will stage all files in the current directory down that are not gitignored (and is often the easiest way)*** + +Step 2: + `git commit -m "Your Message"` +Step 3: `git push origin YourBranchName` (master could go here..)