课程: Coding Exercises: GitHub

免费学习该课程!

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

Process all branches

Process all branches

(graphics trill) - Using Bash was a lot of fun. So let's do another one. Now this time, I want you to try to go through every branch of a repo, no matter how many branches there are, and then copy a certain folder in each one of those branches to a folder on your desktop. Each branch should go in its own subfolder. So let's take a look at our project, and the folder that want you to copy is this Build folder. So I'mma expect a folder on your desktop, and then inside that folder, another subfolder for each one of the branches that we have. In this case, we have this feature, this main, and this update branch, and then inside each one of those folders, we would like the contents of whatever is in this Build subfolder. I'll give you a couple of minutes to figure out how you'd do something like this. (8-bit techno music) Now this one's a lot tougher, but it's a lot less code because you have to figure out a way…

内容