使用命令行和github交互

全局配置


git config --global user.name "nate-river"
git config --global user.email "mayanlong7@icloud.com"
git config --global push.default simple

clone一个已有的仓库做开发

git clone https://github.com/nate-river/bird.git
git --help
git status
git add *
git status
git commit -m 'test cli'
git push  

git push 会要求用户名和密码

管理分支

git branch gh-pages
git checkout gh-pages
git merge master
git push --set-upstream origin gh-pages

注意 多使用git status 查看自己目前所在的分支