Skip to content

Commit

Permalink
Merge pull request #100 from felipecrs/caa
Browse files Browse the repository at this point in the history
Add caa, caam, and caane aliases
  • Loading branch information
joelparkerhenderson committed Oct 6, 2023
2 parents da2f442 + 2b842b9 commit c37a531
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/git-caa/README.md
15 changes: 15 additions & 0 deletions doc/git-caa/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# git caa

## Amend the tip of the current branch, automatically staging files that have been modified and deleted

Git alias:

```git
caa = commit --amend --all
```

Example:

```shell
git caa
```
1 change: 1 addition & 0 deletions doc/git-caam/README.md
15 changes: 15 additions & 0 deletions doc/git-caam/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# git caam

## Amend the tip of the current branch, staging files, and edit the message

Git alias:

```git
caam = commit --amend --all --message
```

Example:

```shell
git caam
```
1 change: 1 addition & 0 deletions doc/git-caane/README.md
15 changes: 15 additions & 0 deletions doc/git-caane/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# git caane

## Amend the tip of the current branch, staging files, and do not edit the message

Git alias:

```git
caane = commit --amend --all --no-edit
```

Example:

```shell
git caane
```
3 changes: 3 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ git commit:
* [git ca](git-ca/) = commit --amend
* [git cam](git-cam/) = commit --amend --message
* [git cane](git-cane/) = commit --amend --no-edit
* [git caa](git-caa/) = commit --amend --all
* [git caam](git-caam/) = commit --amend --all --message
* [git caane](git-caane/) = commit --amend --all --no-edit
* [git ci](git-ci/) = commit --interactive
* [git cm](git-cm/) = commit --message

Expand Down
9 changes: 9 additions & 0 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@
# commit - amend the tip of the current branch, and do not edit the message.
cane = commit --amend --no-edit

# commit - amend the tip of the current branch, automatically staging files that have been modified and deleted.
caa = commit --amend --all

# commit - amend the tip of the current branch, staging files, and edit the message.
caam = commit --amend --all --message

# commit - amend the tip of the current branch, staging files, and do not edit the message.
caane = commit --amend --all --no-edit

# commit interactive
ci = commit --interactive

Expand Down

0 comments on commit c37a531

Please sign in to comment.