下载Git bash 链接
https://git-scm.com/downloads
打开 在桌面上新建个空目录,右键 Git Bash Here 打开 git 工具
2. 实战操作步骤
用户名xc 密码是 erp密码
1.#克隆远程仓库代码
git clone https://xxx.git
2.# 在Git bash 工具中进入下载的目录
cd content-audit-deploy
3.#因为之前的文件都是旧的,所以要删除
git rm -rf .
4.#提交 删除的信息
git commit -m "delete old file and dir"
5.#把要传到远程仓库的文件,放入到自己刚刚下载的目录 ,例如 content-audit-deploy ,然后添加
git add .
6.#查看提交的状态 (显示 Untracked 这个 是未跟踪) , ( 显示Changes 这个更改后的状态)
git status
7.#提交 说明信息
git commit -m "add new dir and new file"
8.#推送远程仓库
git push
9.#查看日志, 并且在页面上看看是否传入成功
git log
git clone 报错
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://git.jd.com/delivery-ops/content-audit-deploy.git/'
git config --system --unset credential.helper