Skip to content

Commit

Permalink
Tell that reset HEAD == reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Apr 4, 2012
1 parent fa1881b commit fa295a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Git にこのファイルを使うように伝えます。
git config --global alias.rs 'rebase --skip'
git config --global alias.chp cherry-pick

git config --global alias.unadd 'reset HEAD --'
git config --global alias.unadd 'reset --'
git config --global alias.rollback 'reset HEAD^ --'
git config --global alias.unci 'reset --soft HEAD^'
git config --global alias.sreset 'reset --soft'
Expand Down Expand Up @@ -237,9 +237,10 @@ Git にこのファイルを使うように伝えます。

別ブランチに行ったコミットをひとつだけ持ってきたいときに。

- `unadd = reset HEAD --`
- `unadd = reset --`

addを取り消したいときに。
addを取り消したいときに。`git reset``git reset HEAD`と同じです。
`--`の後にはファイル名やディレクトリ名を指定できます。

- `rollback = reset HEAD^ --`

Expand Down

0 comments on commit fa295a4

Please sign in to comment.