使用Git自动更新实现本地一键推送到正式服务器项目中
使用心得如下:git有个hooks功能,每次push提交代码的时候,可以触发远程服务器上的hooks,执行shell。 利用这个功能,每次在本地写好内容,直接push到远程服务器上,就可以根据写好的shel自动部署了
2021-12-07 14:18
99 
git add 命令添加所有改动内容
git add xx命令可以将xx文件添加到暂存区,如果有很多改动可以通过 git add -A .来一次添加所有改变的文件。注意 -A 选项后面还有一个句点。 git add -A表示添加所有内容, git add
2021-12-07 14:18
102 
Git冲突:commit your changes or stash them before you
今天用git pull来更新代码,遇到了下面的问题:error: Your local changes to the following files would be overwritten by merge: xx
2021-12-07 14:16
104 
git清除用户名密码
问题:remote: HTTP Basic: Access deniedfatal: Authentication failed for 'http://********解决方案:git config --s
2021-12-07 14:15
105 
执行git命令时出现fatal: 'origin' does not appear to be a
在执行git pull origin master时出现:  fatal: 'origin' does not appear to be a git repository  fatal: Could
2021-12-07 14:16
107 
Git之忽略文件(ignore file)
1、 环境Windows XP SP3 + TortoiseGit + msysGit2、 ignore files的三种方法以下涉及的ignore文件均为如下格式:# 以'#'开始的行,被视为注释
2021-12-07 14:15
108 
删除git remote
目前项目中有两个remote$ git remote -vorigin https://github.com/luodao236/test.git (fetch)origin https://github.com/l
2021-12-07 14:16
109 
Git 工作区、暂存区和版本库
基本概念我们先来理解下Git 工作区、暂存区和版本库概念工作区:就是你在电脑里能看到的目录。暂存区:英文叫stage, 或index。一般存放在 .git目录下 下的index文件(.git/index)中,所以我们
2021-12-07 14:18
111 
T:0.008157s,M:354.8 KB
返回顶部 留言