命令: git checkout origin/dev .gitignore 从远端 dev 仓库,更新本地签出分支的 .gitignore 文件 转载于:https://www.cnblogs.com/lishidefengchen/p/8522722.html