免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
How do you merge a linear history?
(video game sounds) - [Instructor] Let's say that you're working on a new feature for your project, but in the meantime, someone is working on a different feature and they've already pushed it to GitHub and merged that commit onto your main branch. What's a good way to add your commits after their commits without creating a messy timeline? I'll give you a couple of seconds to pause the video and think about how you may have solved this. (8-bit video game music) One of the first commands you learn when working with GitHub is how to merge your changes onto a master branch. Merging is the more common of the merge commands, but there's another merging strategy that will work better to create a more linear history that takes into account other changes that users might have performed. Here's a copy of the project on my local machine. Right now, I'm on a branch called CleanUp. To see the commit history, I can issue a…
内容
-
-
-
Clone a repo with an empty history2 分钟 28 秒
-
(已锁定)
How do you merge a linear history?4 分钟 22 秒
-
(已锁定)
Add an issue directly from the Terminal2 分钟 56 秒
-
(已锁定)
Deleting all commit history1 分钟 56 秒
-
(已锁定)
Fix a committed password4 分钟 32 秒
-
(已锁定)
Create a monorepo3 分钟 18 秒
-
(已锁定)
Update certain branches3 分钟 18 秒
-
(已锁定)
Process all branches3 分钟 48 秒
-
(已锁定)
Run accessibility audit on push6 分钟 43 秒
-
(已锁定)
Use hidden secrets in projects5 分钟 29 秒
-
(已锁定)
Run actions on a schedule3 分钟 13 秒
-
(已锁定)
Create a Docker container action5 分钟 25 秒
-
(已锁定)
Build and deploy your sites3 分钟 55 秒
-