'How can I do "find and replace" inside the git repository?

In my GitHub repository, I have many files and I have to change one of the words to another one. The problem is that, as the occurrences of that word is more than 200, I cannot change it one by one manually. Is there any way to facilitate this?



Solution 1:[1]

In edit mode, press Ctrl + Shift + F, the editor will ask you: Replace, type the search word, then press Enter, the editor will ask you: With:, type the replacement word and press Enter. Then follow the menu.

Solution 2:[2]

The GitHub code editor appears to only allow for find and replace on one file at a time.

You would likely benefit greatly from the use of a code editor like Visual Studio Code which supports find and replace across all files in a project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hossein
Solution 2 poltj18