Git Push Default


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 當 git push [remote] 時出現的問題

warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

# 解決是設置只提交當前分支就好了
git config --add push.default current