git 常规操作

git branch -a  // 查看分支

git status // 检查修改增加文件

git commit -m "描述或备注类似svn提交时的注释"

git pull  //同步数据

git push //git push origin 分支名 提交

git add .
git commit -m "修改bug"
git push
git checkout master
git pull
git merge dev
git push

git通过命令忽略指定文件

忽略

$ git update-index --assume-unchanged /path/to/file
  • 1

取消忽略

$ git update-index --no-assume-unchanged /path/to/file
原文地址:https://www.cnblogs.com/ycqi/p/10944038.html