在我的ec2实例上,我正在尝试对我的github仓库进行拉取请求.我得到以下错误.在我的本地机器上,我承诺一切.如果这是问题,我该如何处理pyc文件?
git add .
git commit -m 't'
git push origin development
git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 2 (delta 1), reused 2 (delta 1)
Unpacking objects: 100% (2/2), done.
From https://github.com/me/rtbopsConfig
8e320f6..0565407 development -> origin/development
Updating 94f7f3e..0565407
error: Your local changes to the following files would be overwritten by merge:
classes/ec2/ec2Auto.pyc
classes/redis_ha.pyc
classes/rtbUtilities.pyc
rtb_redis_connections/redis_connections.pyc
Please, commit your changes or stash them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
你不应该.pyc在Git中存储文件.在你的工作站上,做
find . -name *.pyc -exec git rm {} \;
Run Code Online (Sandbox Code Playgroud)
然后添加一条线*.pyc来.gitignore,提交所有的变化和推动.
在另一端(EC2),做
git checkout classes/ec2/ec2Auto.pyc classes/redis_ha.pyc \
classes/rtbUtilities.pyc rtb_redis_connections/redis_connections.pyc
Run Code Online (Sandbox Code Playgroud)
然后拉.
| 归档时间: |
|
| 查看次数: |
2275 次 |
| 最近记录: |