惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Project Zero
Project Zero
V
Vulnerabilities – Threatpost
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
C
Cisco Blogs
A
Arctic Wolf
月光博客
月光博客
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
量子位
小众软件
小众软件
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
N
Netflix TechBlog - Medium
K
Kaspersky official blog
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Y
Y Combinator Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Schneier on Security
D
Docker
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
H
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
B
Blog
Know Your Adversary
Know Your Adversary
IT之家
IT之家

博客园 - 勇敢的鸵鸟

把能力转化为知识 Why people can not learn from success? 使用Adobe Audition 3.0删除静音区和自动分句 解读 电影“空中监狱(Con Air)”中的一次访谈 说说为什么折腾 有感于——架构师的责任是形成设计共识 Setup Windows SSH tunnel with putty 什么叫明确的思考 代码库管理案例分析 My Next Speech MacBook 721使用4天感受 links for 2011-03-10 List folder size on linux 从今天的培训谈awareness links for 2011-02-21 Testing Quick Post Testing syntax hightlighter with WLW links for 2011-02-18
Using Git with SVN
勇敢的鸵鸟 · 2012-08-11 · via 博客园 - 勇敢的鸵鸟

update: Some people prefer another solution: commit (git svn dcommit) from Trunk-Blue. The process is simliar, the benefit is that you do not have to switch between Green and Blue folders.

I am now working on a web project. Our local CI build takes more than 20 minutes now. While we are working to speed up the build, I am also trying to create a local build folder, so that I can still work (modify code) when the local build is running. The idea is quite simple. We have two folders, one for committing (named trunk-green) and the other for editing (named trunk-blue). When we want to run local build we sync the code from the committing folder. However the solution is not that simple, when it comes to a team of more than 10 developers and QAs working on it. I met a lot of problems, and I am not confident to promote it to others yet now. Anyway, I will record what I learned during working out the final solution.

 1. How to force git to overwrite local files on pull?

当双方代码有冲突时,直接git pull会报错。可以使用git fetch --all,然后git reset --hard origin/master。见http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull

下一步问题,为什么参考链接中出现:error: Untracked working tree file 'public/images/icon.gif' would be overwritten by merge.。