summaryrefslogtreecommitdiffhomepage
path: root/git.html.markdown
diff options
context:
space:
mode:
authorElijah Karari <eljhkrr@gmail.com>2015-11-02 15:52:27 +0300
committerElijah Karari <eljhkrr@gmail.com>2015-11-02 15:52:27 +0300
commit344518d2f60c6373f7814752fc53ef5603b605a9 (patch)
tree7e48a776ab06c741475b2189527b60a30d291ca8 /git.html.markdown
parentedfc99e198fd2e87802ea81d6779fbadfab64919 (diff)
parent824869ef99de73e87ef791bac880f4575cc9ddc9 (diff)
Merge pull request #2 from adambard/master
Update my fork to upstream
Diffstat (limited to 'git.html.markdown')
-rw-r--r--git.html.markdown14
1 files changed, 14 insertions, 0 deletions
diff --git a/git.html.markdown b/git.html.markdown
index bedc9853..e7ca07d6 100644
--- a/git.html.markdown
+++ b/git.html.markdown
@@ -6,6 +6,7 @@ contributors:
- ["Leo Rudberg" , "http://github.com/LOZORD"]
- ["Betsy Lorton" , "http://github.com/schbetsy"]
- ["Bruno Volcov", "http://github.com/volcov"]
+ - ["Andrew Taylor", "http://github.com/andrewjt71"]
filename: LearnGit.txt
---
@@ -333,6 +334,9 @@ $ git log --oneline
# Show merge commits only
$ git log --merges
+
+# Show all commits represented by an ASCII graph
+$ git log --graph
```
### merge
@@ -499,6 +503,16 @@ $ git reset 31f2bb1
# after the specified commit).
$ git reset --hard 31f2bb1
```
+### revert
+
+Revert can be used to undo a commit. It should not be confused with reset which restores
+the state of a project to a previous point. Revert will add a new commit which is the
+inverse of the specified commit, thus reverting it.
+
+```bash
+# Revert a specified commit
+$ git revert <commit>
+```
### rm