https://github.com/arn4v/git-cheatsheet
https://github.com/arn4v/git-cheatsheet
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arn4v/git-cheatsheet
- Owner: arn4v
- Created: 2021-07-25T12:28:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T12:31:35.000Z (almost 5 years ago)
- Last Synced: 2025-05-21T05:11:40.583Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-cheatsheet
Handy git commands that are too niche to remember.
## Show diff of staged (but not commited) changes
```shell
git diff --cached
```
## Make changes to last commit
**[Source](https://stackoverflow.com/a/927386)**
```shell
git reset HEAD~
# Make some changes
git add .
git commit -c ORIG_HEAD
```