Git命令说明

Posted by 刘巨 on 2020-08-26

Git同步源仓库代码

1
2
3
4
5
git remote add upstream https://github.com/Coldairarrow/Colder.Admin.AntdVue.git
git fetch upstream
git merge upstream/master --allow-unrelated-histories

git pull origin master --allow-unrelated-histories

推送代码到远程分支仓库

1
2
3
git push FangXuIT --force
#包括标签
git push FangXuIT --tags

Git初始化