课程: Coding Exercises: GitHub

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Update certain branches

Update certain branches

(electronic sounds) - [Instructor] It's time to ramp things up a little bit. Now, nothing makes developers more angry than having to do repetitive tasks. We'd like to replace everything with a small script. So let's say that you're working on a project and a new version of some library you're using gets updated. You have more than one branch that you would like to push these updates to. How would you automate something like that? I'll give you a couple of seconds to think about how you do something like this. (electronic sounds) Now though I could solve this problem in several languages. I love using bash scripting for this type of task. It's available in most Linux distributions. And as you'll see in future challenges, it works really well with actions. It's a little bit quirky for programming, but you'll get used to it pretty quickly. I created a file on my home folder called get update branches.sh. I've got this open…

内容