首页 \ 问答 \ 将现有的git repository的文件夹导入另一个git repository的子文件夹(Import existing git repository's folder into another git repository's subfolder)

将现有的git repository的文件夹导入另一个git repository的子文件夹(Import existing git repository's folder into another git repository's subfolder)

我是git的新手。 我有两个存储库,其结构如下:

Repo1
  |- .git
  |- CCC

Repo2
  |- .git
  |- AAA
      |- BBB
          |- CCC

问题是在Repo2中,我想从Repo1中提取CCC文件夹并确保将来如果Repo1中的CCC文件夹有任何更改,那么我应该能够将这些更改提取到CCC Repo2。 任何人都可以帮我完成这个程序吗?


I am new to git. I have two repositories with a structure like this:

Repo1
  |- .git
  |- CCC

Repo2
  |- .git
  |- AAA
      |- BBB
          |- CCC

Problem is that in Repo2, I want to pull CCC folder from Repo1 and also ensure that in future, if there are any changes in CCC folder in Repo1, then I should be able to pull those changes to CCC Repo2. Can anybody help me with the procedure to achieve this thing?


原文:https://stackoverflow.com/questions/20989369
更新时间:2022-04-30 19:04

最满意答案

问题是你需要一个可以接收你的电子邮件的本地电子邮件服务器。 要在开发中测试安装,请安装mailcatcher gem,您将在开发中用作SMTP服务器,捕获所有传入的邮件并在http://localhost:1080/:上显示它们。

只需在终端中运行

宝石安装mailcatcher

然后在控制台中运行mailcatcher 。 玩具SMTP服务器将在1025端口上运行,捕获电子邮件并在HTTP端口1080上显示它们。

然后,只需转到大型管理面板并对其进行配置即可。 以下设置适用于我,无需编写任何代码。

在这里输入图像描述

点击send test mail我在本地主机上收到以下电子邮件:

在这里输入图像描述


The problem is that you need a local email server that can receive your emails. To test the setup in development install the mailcatcher gem, that you will use as a SMTP server in development, catching all incoming mails and displaying them on http://localhost:1080/:

Just run in the terminal

gem install mailcatcher

then run mailcatcher in the console. A toy SMTP server will be running on port 1025 catching emails and displaing them on HTTP port 1080.

Then just goto the spree admin panel and configure it. The following settings work perfectly for me without any code writing.

enter image description here

After I clicked on send test mail I got the following email on my localhost:

enter image description here

相关问答

更多
  • 使用PHP的mail()函数是可能的。 记住邮件功能在本地服务器中不起作用。
  • 您需要一个SMTP服务器。 我使用PostCast服务器,这是免费的,并且需要它。 You need an SMTP Server. I use PostCast Server, which is free and does the needful.
  • 我自己找到了这个问题。 得打开stl,ttl config.action_mailer.smtp_settings = { address: "smtp.yandex.ru", port: 465, domain: 'mydomain', user_name: 'myemail', password: 'mypass', authentication: :login, ssl: true, enable_starttls_auto: true, tls: true } 我想我之前看到的教程是旧版本的Rai ...
  • 问题是你需要一个可以接收你的电子邮件的本地电子邮件服务器。 要在开发中测试安装,请安装mailcatcher gem,您将在开发中用作SMTP服务器,捕获所有传入的邮件并在http://localhost:1080/:上显示它们。 只需在终端中运行 宝石安装mailcatcher 然后在控制台中运行mailcatcher 。 玩具SMTP服务器将在1025端口上运行,捕获电子邮件并在HTTP端口1080上显示它们。 然后,只需转到大型管理面板并对其进行配置即可。 以下设置适用于我,无需编写任何代码。 点击s ...
  • 假设您使用内置的SmtpClient ,则可以使用SmtpClient.SendMailAsync方法 smtpClient.SendMailAsync(new MailMessage{ ... }); 将指定的邮件发送到SMTP服务器以作为异步操作传递 Assuming that you you use built in SmtpClient you can use SmtpClient.SendMailAsync method smtpClient.SendMailAsync(new MailMess ...
  • 1)。 继续使用tls 。 2)。 很可能你已经启用了2Factor身份验证,你需要去你的Gmail设置仪表板,并允许你的应用程序与谷歌认证。 我也有同样的问题,只有当我在谷歌上解决这个问题时才解决。 另外,看看这个答案: - 通过PHP Mailer使用Gmail SMTP服务器发送电子邮件 1). Keep using tls. 2). Most probably you've enabled 2Factor Authentication, you need to go to your gmail se ...
  • 尝试编码主题以处理utf8字符... $sendsubject= "=?utf-8?b?".base64_encode($subject)."?="; $mail = new PHPMailer(); $mail->Subject = $sendsubject; Try to encode subject to handle utf8 characters... $sendsubject= "=?utf-8?b?".base64_encode($subject)."?="; $mail = new PHP ...
  • 你需要做一些事情: <%= image_tag "#{root_url}#{image.attachment.url(:product)}", :itemprop => "image" %> 你得到的是相对图像路径,而不是绝对的网址。 ./app/views/order_mailer/confirm_email.html.erb <%= link_to image_tag('http://mysite.com' + item.variant.images.first.attachment.url(:sma ...
  • 找到解决方案: 如何从products.images添加Spree电子邮件附件(图像)? 。 我创建了一个新模板/app/views/spree/order_mailer/confirm_email.text.erb并在此处添加了我的代码。 Found solution here: How to add Spree email attachment (image) from products.images?. I'm created a new template /app/views/spree/order ...
  • 您可以通过在https://github.com/spree-contrib/spree_mail_settings中添加gem来设置电子邮件 不知道自发布此问题以来页面顶部的消息是否已更改,但现在说它使用该宝石。 将gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings'到gemfile中,您将在管理设置中获得一个新页面来设置您的电子邮件 You can set up emails by adding the gem at ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)