Git File Integrity

You can force Git to check the whole repository with git fsck. If a Git repository gets corrupted, you should get a new clone from a non-corrupted repository. Under normal operation Git should check parts of the repository as they are read, so it might take longer to notice some corruption, but it will be … Read more

FileVersionInfo and AssemblyInfo

I found the answer originally here. I’m repeating the details for ease of reference. There are three ‘versions’ that can be included in the AssemblyInfo.cs file: [assembly: AssemblyVersion(“1.1.1.1”)] [assembly: AssemblyInformationalVersion(“2.2.2.2”)] [assembly: AssemblyFileVersion(“3.3.3.3”)] AssemblyInformationalVersion defaults to AssemblyFileVersion if it is not specified. Likewise, AssemblyInformationalVersion and AssemblyFileVersion default to AssemblyVersion if both are not specified. In your … Read more

Git repository lost its remote branches?

[Edit, April 2017] If you made your original clone with –single-branch, your remote.origin.fetch setting will be the problem. If you used a –depth limit, that too implies –single-branch. Restore the normal remote.origin.fetch value described below and you will get a fuller clone. Normally, just running git fetch should restore your remote-tracking branches. If git fetch … Read more