時(shí)間:2019年7月2日15:56:13
新建分支
git branch 分支名字
這個(gè)是第一次建立分支之后介却,用到的push語句
git push --set-upstream origin 分支名字
切換分支
git checkout 分支名字
選中當(dāng)下目錄的全部文件
git add .
提交代碼
git commit -m "add new code"
git push
沒有設(shè)置git 郵箱和用戶名的話
git config --global user.email "you@example.com"
git config --global user.name "Your Name"