untracked working tree file

参考:http://blog.csdn.net/sheismylife/article/details/7204345

编写脚本自动编译并部署时的注意

如果想在C2上编写脚本自动从S1上获取最新代码时,要注意:

1.首先之前产生的公钥不能设密码,否则每次git pull的时候都会要求输入密码。

2.不要将项目中的编译中间文件提交到S1上,比如CMake工程里面的build目录的文件,Maven工程里面的target目录里面的文件。否则下次在C2等客户端用git pull会报类似于这样的错误:

error: Untracked working tree file 'public/images/icon.gif' would be overwritten by merge.

需要执行下面的命令才能修复:

  1. git reset --hard HEAD

  2. git clean -f -d

  3. git pull

untracked working tree file已解决相关推荐

  1. not executable: 64-bit ELF file 已解决

    not executable: 32-bit ELF file 已解决 not executable: 64-bit ELF file 已解决 如上二个问题 1,在ubuntu系统中 gcc-lina ...

  2. 已解决SyntaxError: Non-UTF-8 code starting with ‘\xe8‘ in file

    已解决(Python编码问题)SyntaxError: Non-UTF-8 code starting with '\xe8' in file E:/Python/test3.py on line 2 ...

  3. 解决git错误: error: The following untracked working tree files would be overwritten by merge

    在我本地上进行git pull的时候,出现这个错误: error: The following untracked working tree files would be overwritten by ...

  4. 已解决bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: html5Lib. Do y

    已解决(bs4解析HTML网页报错)bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: ...

  5. 已解决zipfile.BadZipFile: File is not a zip file

    已解决Python openpyxl 读取Excel文件,抛出异常zipfile.BadZipFile: File is not a zip file的正确解决,亲测有效!!! 文章目录 报错问题 报 ...

  6. Jenkins 运行任务时遇到 FATAL:Unable to produce a script file 报错(已解决)

    关键词:Jenkins.Unable to produce a script file.UnmappableCharacterException.IOException: Failed to crea ...

  7. 已解决Traceback (most recent call last): File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\respon

    已解决Traceback (most recent call last): File "E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\r ...

  8. 已解决!!!“Error parsing the file for keys”

    已解决!!!"Error parsing the file for keys" 在我们打开Imatest软件的时候可能会出现如下警示,每个人显示的行数可能不一样,我这里显示是17行 ...

  9. AlreadyExistsError: File system for s3 already registered(已解决)

    AlreadyExistsError: File system for s3 already registered已解决 问题原因 TensorFlow与TensorFlow-io的版本对应 解决 问 ...

最新文章

  1. 走差异化发展路线思想
  2. 虚拟化IDC包含的业务内容
  3. 如何用ABP框架快速完成项目(面向项目交付编程面向客户编程篇) - 广州.net微软技术俱乐部12月份活动报名帖...
  4. java迭代法求圆周率用梯形_感悟数学“近似计算”之美——“望星楼”里的圆周率...
  5. 30岁学python有前途吗-30岁新手入门python!尝试人生另一种可能
  6. [redmine问题回复】redmine安装好后,在什么地方增加cvs配置库CVSROOT
  7. Makefile 中$@ $^ $ 解释
  8. M1芯片mac好用吗?来听听ta们是怎么说的
  9. Keil μVision4软件简介
  10. 爱普生690k打印针测试软件_打印机断针测试软件下载
  11. epub格式电子书编辑器
  12. windows快捷键大全
  13. 获取京东JDCookie
  14. Java——事故应急
  15. Transformer具体如何进行机器翻译
  16. ERA5 total precipitation的单位
  17. 2019 ICPC 南京 K.Triangle(二分+几何)
  18. 全概率公式与贝叶斯公式-机器学习
  19. 华为鸿蒙的三大遗憾和一个好消息
  20. SpringMVC框架从入门到精通

热门文章

  1. html在点击按钮变量加一,如何在html文件上按一个按钮将变量设置到flask服务器rou...
  2. 优学院电子商务理论与实务试题及答案
  3. 漏洞通告 | ​Apache Spark UI命令漏洞;Grails远程代码漏洞;Confluence Questions漏洞
  4. 生态学研究机构之中山大学
  5. git撤销操作(git后悔药)
  6. 这个夏天:应用试客已将积分墙逼到墙角,ASO路上的那些掮客
  7. c语言 日志滚动 大小,Logrotate 日志滚动 解决日志占用空间过大
  8. 孙正义万字访谈实录:AI是我现在唯一关注的事情,我是科技的绝对信徒
  9. 让 Nginx 支持 WAF 防护功能web防火墙 - 沧海一粟 - Web系统架构与服务器运维,php开发...
  10. 一个半成品小病毒专杀