mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 20:58:39 -03:00
fix prompt to match style guide
This commit is contained in:
parent
36b4aadc11
commit
9f20e13e41
18
README.md
18
README.md
@ -281,28 +281,28 @@ Confirm that you haven't pushed your changes to the server.
|
|||||||
`git status` should show how many commits you are ahead of origin:
|
`git status` should show how many commits you are ahead of origin:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git status
|
(bug24)$ git status
|
||||||
# On branch bug123
|
# On branch bug24
|
||||||
# Your branch is ahead of 'origin/bug123' by 2 commits.
|
# Your branch is ahead of 'origin/bug24' by 2 commits.
|
||||||
# (use "git push" to publish your local commits)
|
# (use "git push" to publish your local commits)
|
||||||
#
|
#
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
# one commit
|
# one commit
|
||||||
git reset --hard HEAD^
|
(bug24)$ git reset --hard HEAD^
|
||||||
# two commits
|
# two commits
|
||||||
git reset --hard HEAD^^
|
(bug24)$ git reset --hard HEAD^^
|
||||||
# four commits
|
# four commits
|
||||||
git reset --hard HEAD~4
|
(bug24)$ git reset --hard HEAD~4
|
||||||
```
|
```
|
||||||
|
|
||||||
## I want to discard my local, uncommitted changes
|
## I want to discard my local, uncommitted changes
|
||||||
|
|
||||||
```
|
```
|
||||||
git reset --hard
|
(master)$ git reset --hard
|
||||||
# or
|
# or
|
||||||
git checkout -f
|
(master)$ git checkout -f
|
||||||
```
|
```
|
||||||
|
|
||||||
## I want to add changes in one file to two different commits
|
## I want to add changes in one file to two different commits
|
||||||
@ -312,6 +312,6 @@ git checkout -f
|
|||||||
## I want to remove a file from git but keep the file
|
## I want to remove a file from git but keep the file
|
||||||
|
|
||||||
```
|
```
|
||||||
git rm --cached log.txt
|
(master)$ git rm --cached log.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user