What is HEAD in Git?

You can think of the HEAD as the “current branch”. When you switch branches with git checkout, the HEAD revision changes to point to the tip of the new branch. You can see what HEAD points to by doing: In my case, the output is: It is possible for HEAD to refer to a specific revision … Read more

undefined reference to WinMain@16 (codeblocks)

When there’s no project, Code::Blocks only compiles and links the current file. That file, from your picture, is secrypt.cpp, which does not have a main function. In order to compile and link both source files, you’ll need to do it manually or add them to the same project. Contrary to what others are saying, using a … Read more