-
输入
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上提交你的项目
使用git命令上传/更新项目到github
猜你喜欢
转载自blog.csdn.net/qq_42783654/article/details/114730983
今日推荐
周排行