Git学习笔记
git常用配置命令:
git config --global user.name "Your Name" 相当于设置你将来的仓库所有人
git config --global user.email "you@example.com" 仓库所有人的邮箱
git config --global color.ui true 让git显示颜色
在仓库目录下新建.gitignore,编辑需要忽略掉的文件,支持通配符,并把它提交到仓库即可。可以访问https://github.com/github/gitignore 寻找常用的.gitignore文件
git config --global alias.[alias_name] [git_command] 为git命令配置别名,跟bash里面的别名配置类似