Git
Git Submodules Basics and How to Replace One Submodule With Another
· β˜• 7 min read
Suppose you are working with softwareA which depends on libraryA, instead of copy-pasting the libraryA over and over again when a new version of the library is released what we can do is use submodule to make this process DRY and elegant.
https://d2kbulfv42d43j.cloudfront.net/2021/default-hermit-screen.png

Run Unit Test Before Every Commit with pre-commit Hook
· β˜• 3 min read
Why wait for CI/CD services to run your test? And in case you've already submitted a pull request, you'll have to push another commit to fix the cause of failed test held by CI provider. You can prevent that by running unit tests locally before every commit.
https://d2kbulfv42d43j.cloudfront.net/2019/git_hooks.png

How would you exclude all extension-less executable from your repo?
· β˜• 2 min read
While learning to program in C++, have this though ever cross your mind that how to exclude all the binary file created with 'make source'? This has happened with me. And that is the reason which inspired me to write this post.
https://d2kbulfv42d43j.cloudfront.net/2018/exclude_executable_from_repo.png

Merge more than one Commits before Pushing
· β˜• 2 min read
The process of merging commits together is called squashing.Β There are many commands to do the same thing, but I will discuss the one I learned. There's a read more section below if you want to know more about this topic.
https://d2kbulfv42d43j.cloudfront.net/2017/git_merge_squash.jpg