Git提交记录 本文介绍一种名为 AngularJS’s commit message convention 的提交格式,具体如下: <type>(<scope>): <subject> <BLANK LINE> <body> <BLANK LINE> <foote...
Git/Svn
git取消跟踪已经提交的文件或者目录
我们知道不跟踪某些文件只需要再工程的.gitignore中添加想要忽略的文件即可,但是一旦我们把某些文件跟踪并提交到远程仓库了,想要取消应该怎么操作呢? git rm -r -n --cached your_dir # -n:加上这个参数,执...
svn迁移到git仓库并保留commit历史记录
环境准备 sudo apt-get install subversion sudo apt-get install git sudo apt-get install git-svn 迁移 首先用svn将代码checkout到本地 svn checkout http://svn.company.com/projectname 创建用户映射...
Git不添加.idea等IDE配置文件夹
由于我用goland和phpstrom的时候会在项目目录下产生一个.idea文件夹,这个文件夹又是与项目代码无关的,不希望被git检查并跟踪到,建议将gitignore设置为全局,这样所有项目的.idea文件夹都不会被跟踪到。 git c...
git常用命令记录
git config --global user.namer "xxx":设置全局用户 git config --global user.email "xxx@xxx.com":设置全局邮箱 git init:创建本地仓库 git clone:克隆远程仓库 git status:查看本地仓库状态 git add:添...