摘要: 一、新建代码库 二、配置 Git的设置文件为.gitconfig,它可以在用户主目录下(全局配置),也可以在项目目录下(项目配置)。 三、增加/删除文件 四、代码提交 五、分支 六、标签 七、查看信息 八、远程同步 九、撤销 阅读全文
posted @ 2018-02-24 22:15 松歌 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.全局设置名称跟邮箱git config --global user.name "姓名"git config --global user.email "邮箱@qq.com"2.生成公钥命令ssh-keygen -t rsa -C "邮箱@qq.com"3.查看公钥cat ~/.ssh/id_rsa 阅读全文
posted @ 2018-02-24 22:10 松歌 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1、在需要创建 .gitignore 文件的文件夹, 右键选择Git Bash 进入命令行,进入项目所在目录。 2、输入 touch .gitignore ,生成“.gitignore”文件。 3、在”.gitignore” 文件里输入你要忽略的文件夹及其文件就可以了。(注意格式) 我的 .giti 阅读全文
posted @ 2018-02-24 21:50 松歌 阅读(198) 评论(0) 推荐(0) 编辑
摘要: git 提交时失败 提示如下错误:fatal: Unable to create 'E:/job/tpaas-web/.git/index.lock': File exists. 解决方法:删除.lock文件 rm -f ./.git/index.lock命令执行后再次 git pull 即可 rm 阅读全文
posted @ 2018-02-24 21:36 松歌 阅读(256) 评论(0) 推荐(0) 编辑