So I have two laptops sharing a github repo (and the same branch). An automated program on one of the laptops is modifying robot.txt
and I am manually modifying math.html
on the other laptop.
The question is, assuming both laptops have the correct time, how do I achieve the effect of cp -u
with git in an automated bash script? Note that git merge --allow-unrelated-histories
is not ideal as I frequently run into the case of manually typing git commands to resolve (non-existent) conflicts.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…