]> rtime.felk.cvut.cz Git - hubacji1/oneflow.git/commitdiff
Extend branching cheatsheet
authorJiri Hubacek <hubacji1@fel.cvut.cz>
Tue, 16 Oct 2018 06:22:06 +0000 (08:22 +0200)
committerJiri Hubacek <hubacji1@fel.cvut.cz>
Tue, 16 Oct 2018 06:28:18 +0000 (08:28 +0200)
branching.md

index 4ad136378d4d06875988ba09215ccf602b01d058..d83b6d13c1f606ccd5c5ef183fa3359a886d234e 100644 (file)
@@ -50,15 +50,21 @@ COMMIT_ID` takes current branch and put it on top of the `COMMIT_ID`. Also,
 `git rebase NAME` could be used for rebasing current branch on top of other.
 
 # Cheat sheet
+## Checkout and reset
+- `git checkout COMMIT_ID`
+- `git reset COMMIT_ID`
+- `git reset --hard COMMIT_ID`
+
 ## Explore
 - `git branch`
 - `git branch --all`
+- `git log --oneline --graph --decorate --branches`
+- `git log --oneline --graph --decorate --all`
 
 ## Create
 - `git branch NAME`
 - `git branch NAME COMMIT_ID`
 - `git checkout NAME`
-- `git checkout COMMIT_ID`
 
 ## Merge
 - `git merge --no-ff NAME`