这是一个长期更新的文章,省的再丢了git的一些配置。

gitignore忽略项没生效

分别执行下方命令

1
2
3
4
5
git rm -r --cached .

git add .

git commit -m 'update .gitignore'

git 常用命令缩写

1
2
3
4
5
6
7
8
9
[alias]
	st = status
	co = checkout
	br = branch
	cf = config
	ci = commit
	pr = pull --rebase
	rc = rebase --continue
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit