git小常识

2019-03-14 14:25:39   工作备份

 

  1. 忽略指定文件,无需推送(非.gitignore
  2. git update-index --assume-unchanged 文件名
  1. git切换分支时,提示:fatal: Cannot update paths and switch to branch
  2. git remote set-branches --add origin 远程分支
  3. git remote set-branches --add origin 远程分支
  4. git fetch