git安装

git

1、下载

https://git-scm.com/

2、淘宝镜像

http://npm.taobao.org/mirrors/git-for-windows/

创建git仓库 以gitee为例

注册登录,新建仓库

在cmd中设置全局

git config --global user.name "蒟蒻"
git config --global user.email "762170512@qq.com"

一般都是已有仓库

cd到发布项目文件中shift+右键打开powershell

git status 出现问题就
git add .
gitcommit -m "add files"
意思是将所有文件提交到本地
git remote add origin https://gitee.com/ju_ruo/hj_first.git
git push -u origin master
posted @ 2021-06-12 11:14  ju-ruo  阅读(57)  评论(0)    收藏  举报