git初步使用

发布时间 2023-07-07 18:01:11作者: 花YY

① 安装git

② (本地未建仓库)再文件夹处→git bash here→git clone ssh或http地址

③ 将需要上传的文件复制到本地仓库中

④ 转到本地仓库目录cd 路径

⑤ git add 文件

⑥ git commit -m '你的注释'

若本地已有项目仓库,需要对远程仓库做更新或修改:

① 本地仓库目录下git bash here

② 将更新或新增的文件复制到本地仓库下

③ git pull origin '分支名'

④ git add 文件

⑤ git commit -m '你的注释'

⑥ git push origin '分支名'