Issues

  • use http
1
git config --global http.version HTTP/1.1

Usage

  • upstream
1
2
3
4
5
git remote add upstream XXX.git

git fetch upstream
git checkout master
git merge upstream/master
  • delete branch
1
2
git branch -D NAME
git push origin -d NAME
  • diff & patch
1
2
git diff > ../xxx.patch
patch -p1 < ../xxx.patch