From e2ea85ca38fac3e1e38b33d2756a0c901a426906 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Fri, 10 Jul 2015 13:07:37 -0400 Subject: [PATCH] update cheatsheet --- readme.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 87af69e..e2f6ba3 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ ## Committing: -`git add .`` OR `git add path/to/file` OR `git add *.png` +`git add .` OR `git add path/to/file` OR `git add *.png` `git commit -m "Your Message"` @@ -28,9 +28,18 @@ To put cloning in lamens term you download the remote repository locally ## Merging -merge a branch into current branch +merge/rebase a branch into current branch by doing the following + + +`git fetch --all` (fetch all changes from remote server) +`git merge/rebase origin/BranchNameToMergeFrom` (merge in the changes from the remote branch) + +### Rebase or merge + +***Rebase*** rewinds your commits back until you are at the same commit as the other branch. Then applies their changes, and then your changes. this is good if you want all of your commits at the tip of the branch, but may cause excessive merge conflicts. + +***Merge*** simply merges the target branch into your branch. -`git merge BranchNameToMergeFrom` ## Forking