git 常用命令

    技术2022-07-11  103

    首先创建git 仓库 cd 仓库中 git init 初始化仓库 git status 查看文件夹内容的状态是否已经提交到git git add . 将当前文件中的内容提交 git commit -m “” 提交时候信息 git push 首次提交需要添加仓库 后续不用

    git fetch origin 当代码提交上去以后想让服务器中的代码和git内容一样 本地代码更新服务器上的代码

    Processed: 0.020, SQL: 9