Git: How to add modified files and ignore untracked ones
Whenever you make changes to a bunch of files already tracked by git, there’s an easy way to add them without adding untracked files. The command is: git add –update or git add -u That’s it!
Whenever you make changes to a bunch of files already tracked by git, there’s an easy way to add them without adding untracked files. The command is: git add –update or git add -u That’s it!
Have you ever wondered how you can use Python to work with groups of files? I wrote a comprehensive article on this for Real Python. You can find the article here. In the article, I cover differences between modules such as fnmatch, pathlib and os. In addition to that, you will learn how to create, …
Recently, while working on a project, I needed to search if an image I intended to delete was in use anywhere else in the code. There were lot’s of text files to go through and I needed a quick way to tell whether or not it was safe to delete said image. I learned how …
How to find all files containing specific text in linux? Read More »
Reading and writing to files using Python is easy to do. In this post, I will go over how to read and write to text files.