An open API service indexing awesome lists of open source software.

https://github.com/arn4v/git-cheatsheet


https://github.com/arn4v/git-cheatsheet

Last synced: 5 months ago
JSON representation

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
```