课程: Coding Exercises: GitHub

免费学习该课程!

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

Fix a committed password

Fix a committed password

(8-bit game sounds) - Occasionally, you may end up pushing a commit or a file that has some sensitive information, like a password or an API key. Now you don't want to destroy your entire history, but make a more surgical change. Assuming you've submitted a file with a password and then done some other commits. How do you make sure that GitHub doesn't store those passwords in its history? I'll give you a couple of seconds to pause the video, and think about how you may solve this. (8-bit game sounds) All right, there's a few ways to do this. And in the last video I showed you how to delete the entire history of a project. For this one, we need to be more surgical and I'm going to use a regular git to take care of it. Here's a project where I've done a series of commits. And if I add the commits option here at the end, you can see that I did a first commit. Then I added my extremely sensitive authentication file. And…

内容