Skip to content
Snippets Groups Projects
Unverified Commit 25c5cc21 authored by ck85nori's avatar ck85nori :railway_track:
Browse files

visualize git diff

parent da984ec6
Branches
No related tags found
No related merge requests found
...@@ -12,3 +12,4 @@ img/staging-area.svg ...@@ -12,3 +12,4 @@ img/staging-area.svg
paper.html paper.html
paper.pdf paper.pdf
*.pdf *.pdf
img/staging-area-diff.svg
...@@ -584,18 +584,11 @@ ...@@ -584,18 +584,11 @@
`rm` and that does something entirely different `rm` and that does something entirely different
</section> </section>
<section id="cli-git-diff-1" data-markdown> <section id="cli-git-diff" data-markdown>
## command line ## command line
### show changes ### show changes
```bash ![git diff](img/staging-area-diff.svg)
# from staging area to current working copy
git diff
# show contents of staging area, i.e.
# from last commit to staging area
git diff --staged
```
notes: notes:
- users should do this in a terminal with demo by us - users should do this in a terminal with demo by us
......
digraph {
node [shape = "box", style = "filled,rounded"]
workdir[label = "working directory\n(changes not staged for commit)", color = lightskyblue]
stage[label = "staging area\n(changes to be committed)", color = orchid]
repo[label = "repository\n(tracked content)", color = limegreen]
workdir -> stage [label = "git diff"]
stage -> repo [label = "git diff --staged"]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment