Git常用命令及操作汇总

配置本仓库用户名和邮件
git config user.name "codeboyzz"
git config user.email "imzhouchen@gmail.com"

保持 fork 的项目与原项目上游同步
git remote add upstream [upstream_url]
git fetch upstream
git checkout master
git merge --no-ff upstream/master
git push origin master

posted @ 2020-08-02 10:42  codeboyzz  阅读(116)  评论(0)    收藏  举报