在github上创建仓库:Create a new repository on the command linetouch README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/BrentHuang/MyRepo.gitgit push -u origin master在本地新建一个分支: git branch Branch1切换到你的新分支: git checkout Branch1将新分支发布在github上: git push origin Branch1在本地删除一个分支: git branch -d Branch1在github远程端删除一个分支: git push origin :Branch1 (分支名前的冒号代表删除)直接使用git pull和git push的设置git branch --set-upstream-to=origin/master master git branch --set-upstream-to=origin/ThirdParty ThirdPartygit config --global push.default matching