문제점

$ git push 를 사용하니 다음과 같은 경고가 발생하였다.

warning: push.default is unset; its implicit value is changing in

Get 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)

fatal: colud not read Username for 'https://github.com': No such file or directory


해결방안

Git 2.0 부터는 git push의 기본 동작이 matching에서 simple로 바뀌었다는 경고이다. 이 경고를 나오지 않게 하려면 

git config --global push.default matching 혹은 git config --global push.default simple 을 실행하면 된다.

matching은 동일한 이름을 가진 모든 branch를 push한다. 두 end를 늘 동일한 상태로 유지하고자 할 때 사용된다. 여럿이 사용하는 환경에는 부적합하다.

simple은 현재 작업중인 branch만 push한다.


위 사진에서 경고는 사라졌지만 다른 문제점도 찾아봐야겠다.

참고1참고2참고3 

+ Recent posts