标准方法安装 $ go get github.com/go-delve/delve/cmd/dlv 源码方式安装 $ export GOPATH=~/.go $ git clone https://github.com/go-delve/delve.git $GOPATH/src/github.co ...
分类:
系统相关 时间:
2020-06-25 10:19:57
阅读次数:
191
git config --global user.name ''" git config --global user.email '''' ...
分类:
其他好文 时间:
2020-06-25 10:19:19
阅读次数:
92
在旧版本中,git的撤销工作区的文件修改是用git checkout -- <file>命令,由于容易漏了--导致和切换分支混肴,所以新版本中: - 使用git restore (--worktree) <file>命令从暂存区恢复工作区 - 使用git restore --staged <file ...
分类:
其他好文 时间:
2020-06-25 10:17:20
阅读次数:
465
Windows中使用CRLF标识一行的结束,而在Linux/UNIX系统中只使用LF标识一行的结束。CRLF即Carriage-Return Line-Feed的缩写。通常情况下,Git库不会自动修改文件内容,但是默认会将入库的文件的行尾符设置为LF,会将检出的文件的行尾符设置为CRLF。在执行如下 ...
分类:
其他好文 时间:
2020-06-25 10:17:06
阅读次数:
80
git的选项和最常用的子命令 1、启动工作区(另请参阅:git帮助教程) clone: 将存储库克隆到新目录 (克隆) init: 创建空的Git存储库或重新初始化现有的Git存储库 (初始化) 2、处理当前更改(另请参见:git-help-daily) add: 向索引添加文件内容 (添加) mv ...
分类:
其他好文 时间:
2020-06-25 09:55:06
阅读次数:
109
这样在输入过一次密码之后,以后就不需要每次都输入密码了。touch ~/.git-credentials,git config --global credential.helper store ...
分类:
其他好文 时间:
2020-06-25 09:45:07
阅读次数:
71
一、Git常用命令 1、创建版本库 git clone -b 分支名 http的git地址 //Git克隆指定分支 git clone -b 分支名 http的git地址 c:/User/zp/dev指定目录 //Git克隆指定分支、指定目录git init ...
分类:
其他好文 时间:
2020-06-24 23:42:56
阅读次数:
52
一、删除新闻 1.1 Controller层 1.2 Service层 二、新闻的修改 2.1 Controller层 2.2 Service层 三、新闻的添加 3.1 Controller层 3.2 Service层 四、新闻的查看 4.1 Controller层 4.2 Service层 五、效 ...
分类:
Web程序 时间:
2020-06-24 23:41:33
阅读次数:
68
Git 使用(一) - git init 初始化仓库 - git status 仓库状态 - git add filename 单个文件加入暂存 - git add. 全部加入暂存 - git commit -m <message> 添加描述 - git log 查看日志 - git reset I ...
分类:
其他好文 时间:
2020-06-24 23:31:02
阅读次数:
72
安装环境:Windows10 64位电脑官网 :https://git-scm.com/download/win 1、进入官网下载安装包 2、双击下载好的安装包,进行安装。 3、设置Git安装的位置 4、选择需要的组件。如有需求可选中其他组件 5、程序快捷方式建在哪里,建议直接next. 6、选择G ...
分类:
其他好文 时间:
2020-06-24 20:00:59
阅读次数:
293