From the course: Coding Exercises: GitHub
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Process all branches - GitHub Tutorial
From the course: Coding Exercises: GitHub
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…
Contents
-
-
-
Clone a repo with an empty history2m 28s
-
(Locked)
How do you merge a linear history?4m 22s
-
(Locked)
Add an issue directly from the Terminal2m 56s
-
(Locked)
Deleting all commit history1m 56s
-
(Locked)
Fix a committed password4m 32s
-
(Locked)
Create a monorepo3m 18s
-
(Locked)
Update certain branches3m 18s
-
(Locked)
Process all branches3m 48s
-
(Locked)
Run accessibility audit on push6m 43s
-
(Locked)
Use hidden secrets in projects5m 29s
-
(Locked)
Run actions on a schedule3m 13s
-
(Locked)
Create a Docker container action5m 25s
-
(Locked)
Build and deploy your sites3m 55s
-