-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig_aliases
34 lines (24 loc) · 972 Bytes
/
dot_gitconfig_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ~/.gitconfig_alias
# =============================================================================
# Aliases for Git sourced by `~/.gitconfig`.
[alias]
# Lists aliases.
aliases = config --get-regexp ^alias\\.
# Amends the currently staged files to the latest commit.
amend = commit --amend --no-edit
# Shows the current working tree status using the short format.
s = status -sb
# Shows verbose output about branches.
branches = branch -a
# Run merge with meld tool
merge = mergetool -t meld
# Shows short SHA, description, and history graph of last 20 commits.
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# Undos commit and leaves files (only for non-public commits).
reset-last-commit = reset HEAD~1 --soft
# Unstash & reset all change
reset = checkout .
# Shows verbose output about remotes.
remotes = remote -v
# Commits as Work in Progress.
wip = commit -am "WIP"