How to

Why your Git repository is suprisingly large?

Git stores everything. It is a version control tool after all. What is once committed will always be available for anyone to checkout. But how does git stores all versions of your files? Does it copy every version? No. It just detects changes and takes note of them. After all, adding a new function to your class is just inserting some lines into a text file. But this doesn’t always help you to save repository space.

If you’ve added a file then deleted it in the next commit, it doesn’t go away. It has to be stored somewhere to allow you to access it in the future if you wish. These kinds of commits might cause your repository to grow and make it uncomfortably large for cloning. “There must be a way to clean this mess!” I hear you say and there is! But first, we have to figure out why your git repository is unnecessarily large.

Read More »Why your Git repository is suprisingly large?

How to disable touchpad on Linux

Sometimes it feels like your hardware is not co-operating and trying to argue with you. Which can be really annoying. My touchpad is always detecting my palm while trying to use the keyboard and moves the cursor to an unknown location… So I would like to let you know the easy trick to disable and enable input devices on Linux.

If you want to disable a device which is connected or integrated with your computer on Linux you can check out xinput command. To view all xinput devices you can use the command “xinput list” the output of it on my desktop computer looks like this.

Read More »How to disable touchpad on Linux