Updated: The post-checkout hook the hook code below is intended to run only when changing branches, but it is invoked also when retrieving files from the index and rebasing. Thus these two cases need to be addressed in the code. See more details below. Often when working on experimental Git …
Posts tagged with: Git
Situation: The setup is the following: my laptop has dual-boot setup with Linux and Windows, and a disk (NTFS) is shared between systems. I wanted to have a directory for a Git repository (in the shared disk) in such a way that: It is possible to pull and push from …
Congratulations! It's amazing that you're thinking into contributing to an open-source project. Contributions usually include: 🪲 Solving bugs ⭐ Development of new features 🗎 Improve documentation etc. Although the task seems intimidating, it can be broken into some simple steps. First of all, check if the project you want to contribute to has …
The posh-git-bash prompt, for Git, is a useful tool that shows information about the current status of a local Git repository respect to local and remote (e.g. GitHub) repositories; in this way, it's easy to see if the repository is ahead or behind, has uncommitted changes, is up-to-date, etc …