-------------------------使用Git--------------------------------
首先使用git把远程仓库的master分支下的代码拉到本地
git clone 远程仓库地址
cd到项目根目录下,使用命令查看当前分支
git branch
创建本地分支(因为master分支不能够push到远程的master分支上)
git branch localbranch
再次查看分支
git branch
切换到本地分支
git checkout localbranch
通过命令查看本地localbranch与master分支有没有不同之处
git diff
接下来把本地localbranch分支提交到本地master分支
git add ./*
git commit -m"提交信息"
再次查看是否一致
git diff
一致之后把本地的localbranch分支推送到远程的master分支上
git push origin localbranch
网页刷新远程的git仓库,可以看到提交上去的分支内容。