返回上一个文件
创建文件
调用文件
文件夹里添加文本
文本添加内容
vim 文本名 退出时 按Esc键 输入:wq 回
上传文件
初始化
添加工作区间
添加全部文件工作区间
查看当前文件状态
克隆
文件所在地
提交备注
链接到git
git remote add origin 链接(git创建的文件链接)
更新后上传时如果上传失败
上传git
git push -u origin master(分支名; 默认master)
git push -f origin master (强制上传)
长期存储密码
git config --global credential.helper store
创建分支
切换到分支
修改本地文件在pull的时候pul不下来的时候
创建分支到切换分支
git checkout -b masters(分支名masters)
报错解决
在执行 git status || git add .时
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'.
解决方法
移除 .git/index.lock
$ rm -f ./.git/index.lock