首页 \ 问答 \ 将原始GitHub存储库中的新更新引入分支的GitHub存储库(Pull new updates from original GitHub repository into forked GitHub repository)

将原始GitHub存储库中的新更新引入分支的GitHub存储库(Pull new updates from original GitHub repository into forked GitHub repository)

我在GitHub上分配了某人的存储库,并希望使用原始存储库中的提交和更新来更新我的版本。 这些是在我分发我的副本后制作的。

我如何能够将原来所做的更改并入我的存储库?


I forked someone's repository on GitHub and would like to update my version with commits and updates made in the original repository. These were made after I forked my copy.

How can I pull in the changes that were made in the origin and incorporate them into my repository?


原文:https://stackoverflow.com/questions/3903817
更新时间:2023-07-25 16:07

最满意答案

像这样的前缀是毫无意义的,除非你有一些更加随意的东西; 像两个地址。 然后你可以使用address_1,address_2,address_home等

与电话号码一样。

但对于像年龄,性别,用户名等静态的东西; 我会像这样离开他们。

只是为了向您展示如果您需要为所有这些字段加前缀,则您的查询可能如下所示

SELECT users.user_id FROM users WHERE users.user_name = "Jim"

当它很容易

SELECT id FROM users WHERE username = "Jim"

prefixes like that are pointless, unless you have something a little more arbitrary; like two addresses. Then you might use address_1, address_2, address_home, etc

Same with phone numbers.

But for something as static as age, gender, username, etc; I would just leave them like that.

Just to show you If you WERE to prefix all of those fields, your queries might look like this

SELECT users.user_id FROM users WHERE users.user_name = "Jim"

When it could easily be

SELECT id FROM users WHERE username = "Jim"

相关问答

更多
  • 我同意,不要使用任何保留字,或引用或括号或转义形式的保留字。 将用户名称命名为Person 。 您可能会对此答案感兴趣,并且可能会对ISO标准11179中的谷歌命名指南感兴趣 I agree, do not use any reserved words, or quoted or bracketed or escaped forms of reserved words. Name the User table Person. You may be interested in this answer and ...
  • 像这样的前缀是毫无意义的,除非你有一些更加随意的东西; 像两个地址。 然后你可以使用address_1,address_2,address_home等 与电话号码一样。 但对于像年龄,性别,用户名等静态的东西; 我会像这样离开他们。 只是为了向您展示如果您需要为所有这些字段加前缀,则您的查询可能如下所示 SELECT users.user_id FROM users WHERE users.user_name = "Jim" 当它很容易 SELECT id FROM users WHERE usernam ...
  • Mule XML植根于Spring XML,其中bean名称是camelCased 。 从这个祖先开始,我会说骆驼式的名字更合适。 MuleSoft似乎也大多遵循这个惯例。 这是一个从Mule测试套件中取得的配置文件: https : //github.com/mulesoft/mule/blob/mule-3.x/tests/integration/src/test/resources/org/mule/test/integration/ polling-config.xml在这里你可以看到像pollWi ...
  • 你可以调用变量$ resourcelocation并相应地记录它,即它应该采用文件路径,uri路径或字符串。 我认为调用变量aOrB不是好习惯,它应该是通用的。 你可以通过检查函数的输入来确定它是什么类型,以及它是否有效。 如果它既不匹配任何支持的参数类型,那么您应该为非法参数抛出错误。 类声明很好(但缺少一个开头括号)btw ... Could you possibly call the variable $resourcelocation and document it accordingly, i.e ...
  • 您并不真正了解我认为是问题的命名空间。 防守战术和进攻战术中的游戏实际上是一种不同类型的对象。 一些戏剧是防守战术,有些是冒犯性的。 即防守和进攻是比赛的一个属性,而不是相反。 命名空间只是组织单位。 您可以为文件加载器使用名称空间,为策略引擎使用另一个名称空间。 为什么不直接使用带有播放方法的IPlay接口......以及实现它们的某种策略类。 我不明白为什么你想要名称空间或想要反转自然会起作用的对象结构。 你试图让更具体的人在一个层次结构imo中占据更一般的位置。 因此,为什么你感到痛苦。 You do ...
  • 在Microsoft文档中,它声明: 迁移名称可以像版本控制系统中的提交消息一样使用。 例如,如果我进行了更改以保存产品的客户评论,我可能会选择类似AddProductReviews的内容。 因此,通过他们提供的AddProductReviews示例,我认为Upper Camel Case是微软推荐的。 https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/ In the Microsoft docs it states: ...
  • 我知道有几个选项。 您可以为服务器分配弹性IP地址,当您重新启动它们时,它们可以使用相同的IP地址返回。 另一种方法是更改服务器本身的主机名。 您可以通过编辑Linux上的/ etc / hostname文件来永久执行此操作。 您甚至可以将实例作为新的AMI进行刻录,以使更改更加永久。 另一种选择是甚至不使用木偶大师并使实例拥有自己的一组清单,它只是puppet apply自身,这样就避免了对匹配特定节点正则表达式的依赖。 但是,此选项可能不适合您的架构。 There are a few options t ...
  • 最好的做法是逃避这些决定。 如果需要为表示同一实体的不同类型的对象命名,则必须重新考虑代码。 很可能存在设计问题。 为什么你需要它们在同一范围内? 你不能将需要byte[]的逻辑提取到单独的方法/类中吗? 你能用多态来解决它吗? 可能你可以简单地内联电话? 一般规则是将变量命名为更接近您拥有的域模型。 byteName不携带任何有价值的信息,它应该表明出现了问题。 唯一的例外是单元测试。 显然,如果你为toBytes()方法编写单元测试,你将面临这个问题。 但即使在这种情况下,您也可以命名对象input和o ...
  • TLDR:组织起来。 首先,我强烈建议你阅读: OOCSS - http://www.smashingmagazine.com/2011/12/12/an-introduction-to-object-oriented-css-oocss/ SMACSS - https://smacss.com/ 和 BEM - http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/ 在项目开始时花些精力去理解CSS的模块 ...
  • 您可能希望使用saveRDS和readRDS函数而不是save和load 。 RDS版本函数将保存和读取没有附加名称的单个对象。 您将创建对象并将其保存到文件中(使用paste0或sprintf创建唯一名称),然后在处理结果时,您可以一次读取一个对象,或者将多个读取到列表中以使用它们。 You might want to use the saveRDS and readRDS functions instead of save and load. The RDS version functions will ...

相关文章

更多

最新问答

更多
  • 您如何使用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)