Making sure you won't commit conflict markers

1 · Abin Simon · Oct. 11, 2019, midnight
Recently I made a mistake of committing a conflict marker and pushing that code to Github. That is when I thought that I could have a easily avoided this if I had added a git-hook to warn me if the code that I commit had conflict markers. Here is how you would set up something like that. What are git-hooks? # In case you are new to git-hooks, it is a way by which git lets to hook into the different things that git does. You can write git-hooks to do a lot of things. You can modify a commit messa...