-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
36 lines (31 loc) · 1.14 KB
/
.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
32
33
34
35
36
[core]
editor = vim
excludesfile = /home/radorado/.gitignore_global
[push]
default = simple
[user]
email = [email protected]
name = Radoslav Georgiev
[alias]
s = status
a = add -p
m = commit
c = checkout
# List Git aliases with definitions
aliases = ! git config --get-regexp ^alias\\. | grep -v "^alias\\.aliases" | sed -e 's/^alias\\.//' -e 's/\\ /\\ =\\ /'
#
# Shorthand for push
p = push
# Shorthand for pull
pl = pull --ff-only
# Create a new remote branch with the same name and track it.
# First argument is remote name. Defaults to "origin".
# Second, third and fourth argument are passed to `git push`.
pub = "!p() { [ -z \"$1\" ] && remote=\"origin\" || remote=$1; git push --set-upstream $2 $3 $4 $remote HEAD; }; p"
# Push force with a check if all the commits you are overriding on the remote
# were previously present in the remote reference in your repository.
# This way force push is safer as it wouldn't overwrite commits by other team members
# pushed to the remote branch after you've last pulled and rewritten some history.
pf = push --force-with-lease
prs = pr list
pro = pull-request -o