From 5aa147af38d8f9be386bceb983c99c035c4766ac Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 20 Jul 2014 05:59:08 -0700 Subject: [PATCH] Updated Git survival guide (markdown) --- Git-survival-guide.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Git-survival-guide.md b/Git-survival-guide.md index 03631ab..b9bbe82 100644 --- a/Git-survival-guide.md +++ b/Git-survival-guide.md @@ -1,10 +1,10 @@ There is a lots of guide/docs on internet but there are too big and confusing. You will find here a mini guide to use git with a minimal number of command and parameters. You won't find any details or explication of git internal mechanism here. ## Remote Transfer or how to communicate with the world -* Get a fresh repository: git clone `` +* Get a fresh repository: git clone `` * Update current repository to latest: git fetch -v -* Update current repository with commit from a fork: git fetch -v `` `` -* Send your new commit to the remote: git push +* Update current repository with commit from a fork: git fetch -v `` `` +* Send your new commit to the remote: git push `` `` ## Commit or how to communicate with your local repository * staged your change: git add/rm -p `` @@ -29,9 +29,9 @@ Stash is very useful. For example, your will use it before/after (push/pop) merg ## Branch or how to separate your work by feature Please note that master is actually the default branch * List branches: git branch -v -* Switch to another branch: git checkout `` -* Creates: git branch `` -* Delete branches: git branch -d `` +* Switch to another branch: git checkout `` +* Creates: git branch `` +* Delete branches: git branch -d `` * Set the base reference of the branch (for rebase): git branch --set-upstream-to=`` `` ## Branch use case