-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
31 lines (30 loc) · 874 Bytes
/
.gitconfig
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
[user]
name = kazimir-malevich
email = [email protected]
[alias]
st = status
ci = commit
br = branch
co = checkout
# a more detailed log view with a graph and author information
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# undo the most recent git add operation
unstage = reset HEAD --
# show the last commit on the current branch
last = log -1 HEAD
# amend the previous commit with new changes
amend = commit --amend
# undo the most recent commit and keep changes in the working directory
undo = reset HEAD^
# list all local and remote branches
branches = branch -a
# list all remote branches
remote-branches = branch -r
[core]
editor = /usr/bin/vim
[color]
ui = true
[push]
default = simple
[init]
defaultBranch = main