Skip to content

Commit

Permalink
Document amend-work command
Browse files Browse the repository at this point in the history
Add amend-work command to the documentation
  • Loading branch information
alexbeatnik committed Aug 22, 2019
1 parent 4df04b6 commit 426ef26
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Run `git elegant <command>` where `<command>` is one of
- [`accept-work`](#accept-work)
- [`pull`](#pull)
- [`clear-local`](#clear-local)
- [`amend-work`](#amend-work)
- [`commands`](#commands)

# `acquire-repository`
Expand Down Expand Up @@ -168,6 +169,20 @@ git fetch --all
git checkout <branch name>
```

# `amend-work`
Updates the most recent commit by adding some changes.

```bash
usage: git amend-work
```

A sequence of original `git` commands:
```bash
git add --interactive
git diff --cached --check
git commit --amend
```

# `clear-local`
Removes all local branches which don't have remote tracking branches.

Expand Down

0 comments on commit 426ef26

Please sign in to comment.