
git
阿川阿川
喜你所做,做你所爱
展开
-
使用 git pull 拉代码时提示:There is no tracking information for the current branch.
问题描述:使用 git pull 拉代码时提示:、$ git pullThere is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for details. git pull <remote> <branch>If you wish to set tracking informat原创 2020-07-20 11:20:19 · 20393 阅读 · 0 评论 -
git安装包国内镜像下载地址,速度快
淘宝镜像:淘宝镜像GitHub转一次:GitHub原创 2020-07-14 19:41:48 · 774 阅读 · 0 评论 -
git常用操作,切换分支,合并分支
设置全局变量,用户名git config --global user.name "tang"设置全局变量,邮箱git config --global user.email "hc0505@126.com"查看状态git status添加所有文件到暂存区git add -a添加所有文件到暂存区,不包括删除文件git add .提交暂存区到仓库区git commit -m ""提交到暂存区,并提交到分支中git commit -am ""取回远程仓库的变化,并与本地分支原创 2020-06-05 11:35:22 · 188 阅读 · 0 评论 -
git版本回退:error: Your local changes to the following files would be overwritten by merge
git pull活git push 代码出现错误,代码冲突;解决办法:1、解决冲突再次上传;2、先退commit,然后再git pull,再修改代码,再上传(之所以使用这个办法,是因为编辑器一点格式问题,很多没有动过的文件导致"被修改",此时去解决冲突就得不偿失,因此...)git reset --soft回退到某个版本,只回退了commit时提交的信息,已修改的代码还在。...原创 2020-04-28 15:57:35 · 420 阅读 · 0 评论 -
vscode,git提交push,需要每次都输入账号密码username,password
vscode,git提交push,需要每次都输入账号密码username,password配置name,Emailgit config --global user.name "huachuan"git config --global user.email hc.5@qq.com解决:每次提交都要输入username,password当前仓库git config cr...原创 2020-01-10 12:09:55 · 7849 阅读 · 1 评论 -
笔记:git常用操作,git使用,git命令行
常用操作流程#设置全局变量,用户名git config --global user.name "tang"#设置全局变量,邮箱git config --global user.email "hc0505@126.com"# 显示有变更的文件git status# 添加所有文件到暂存区git add -a# 添加所有文件到暂存区,不包括删除文...原创 2019-03-25 12:00:47 · 198 阅读 · 0 评论 -
Git操作失败并提示Another git process seems to be running in this......
问题: Git操作的过程中突然显示Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails...原创 2019-04-28 18:16:06 · 323 阅读 · 0 评论 -
Git遇到Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法
git操作时:遇到提示Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法解决方案:在 .git 同级目录中找到index.lock ,删除即可;或在 .git 同级目录执行rm -f .git/index.lock将文件删除即可提交成功;rm -f .git/index.lock...原创 2019-05-21 18:16:00 · 8299 阅读 · 2 评论 -
Git详细安装教程,翻译
Git详细安装教程,翻译Git 2.21.0 Setup1、解释:Additional icons 附加图标 On the Desktop 在桌面上Windows Explorer integration Windows 资源管理器集成鼠标右键菜单 Git Bash Here Git GUI HereGit LFS (Large File Suppor...原创 2019-05-25 19:55:07 · 1267 阅读 · 0 评论