git 上传远程文件,以及建立分支,再返回到主文档

来源:互联网 发布:应聘网络教师注意事项 编辑:程序博客网 时间:2024/05/16 08:03

将更新的文件传至github

git add headlines.py

git add templates/home.html
git commit -m "Using GET"

git push origin master

建立其他分支

git branch post-requests
git checkout post-requests

将分支变更内容提交

git add headlines.py
git add templates/home.html
git commit –m "POST requests"

返回到主干
git checkout master