1、git commit报错,/usr/bin/env: python No such file or directory
安装python之后,管理员权限启动Git Bash ln -s /c/Python27/python.exe /usr/bin/python
2、git 右键菜单,没有pull,是因为有冲突文件。git reset --hard <commit_id>,git push origin HEAD --force。
push如果报错,右键push,勾选known changes
3、git文件删不掉:右键属性,去掉勾选只读
4、.classpath文件不能添加到.gitignore里,不然会从git版本管理中删掉;为了保留本地配置,需要git stash
5、.gitignore的使用:1) git rm -r --cached . 2) git add .
安装python之后,管理员权限启动Git Bash ln -s /c/Python27/python.exe /usr/bin/python
2、git 右键菜单,没有pull,是因为有冲突文件。git reset --hard <commit_id>,git push origin HEAD --force。
push如果报错,右键push,勾选known changes
3、git文件删不掉:右键属性,去掉勾选只读
4、.classpath文件不能添加到.gitignore里,不然会从git版本管理中删掉;为了保留本地配置,需要git stash
5、.gitignore的使用:1) git rm -r --cached . 2) git add .