-
输入
git clone https://github.com/zsptsf/uniapp.git克隆远程版本库 -
打开项目,在此处打开git bash here

-
git config --global user.name配置用户名
git config --global user.email配置邮箱 -
git init初始化本地版本库,这时会在自己本地的文件夹中出现一个隐藏.git文件夹 -
git add .跟踪所有改动过的版本或
git add <文件名>跟踪指定文件 -
git status查看状态(可有可无) -
git restore --staged unilogin/manifest.json特定取消缓存某个文件(可有可无) -
git commit -m "这里是解释"简述更新内容 -
git remote add <远程主机名> https://github.com/zsptsf/uniapp.git后面的url是你项目的url,远程添加拉取,如git remote add uniapp https://github.com/zsptsf/uniapp.git -
git pull <远程主机名> master拉取一下你GitHub上的文件 -
如果出现failed to push some refs to git则使用
git pull --rebase <远程主机名> master(未出现failed to push some refs to git不用理会) -
git push -u <远程主机名> master向GitHub上提交你的项目

被折叠的 条评论
为什么被折叠?



