Skip to content

Latest commit

 

History

History
23 lines (11 loc) · 943 Bytes

File metadata and controls

23 lines (11 loc) · 943 Bytes

c01-git04

Questions (answer inline)

  1. Let's suppose you remotely pushed the my_env.txt file above. A colleague asks you to remove this information from Git. What's your colleague worried about?

  2. If you modify the file in your workspace, then commit and push it, will it be enough to erase this password information from the repository? (It's not). Why?

  3. If you delete the file and push it, then create a new one with the rest of the information, is it enough? (It's not). Why?

  4. How to fix this? How do you remove something from Git history when it is in the remote repository?

  5. Which commands would you use? Explain what the command does.


Answer for exercise c01-git04