更新文件夹中的所有回购?

编程入门 行业动态 更新时间:2024-10-24 08:28:19
本文介绍了更新文件夹中的所有回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个文件夹 - 'Repos' - 其中包含我感兴趣的回购站点。这些文件已经从bitbucket中克隆出来,但我猜github也可能是一个源代码。

I've got a folder - 'Repos' - which contains the repos that I'm interested in. These have been cloned from bitbucket, but I guess github could be a source too.

Repos - music-app - elephant-site - node-demo

是否有一个git命令可以使用哪些步骤通过Repos中的每个文件夹并查看服务器上是否存在新的提交以及下载新的东西?如果在本地有新的提交,请上传这些内容。

Is there a git command that I can use which steps thru every folder in Repos and sees if there are new commits on the server, and the download the new stuff? And if there are new commits locally, then upload these.

推荐答案

试试这个:

Try this:

cd repos find . -maxdepth 1 -type d -exec sh -c '(cd {} && git pull)' ';'

更多推荐

更新文件夹中的所有回购?

本文发布于:2023-10-30 19:31:34,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   夹中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!