How do I use Notepad++ (or other) with msysgit?

git config –global core.editor “‘C:/Program Files/Notepad++/notepad++.exe’ -multiInst -notabbar -nosession -noPlugin” Or, for 64-bit Windows and a 32-bit install of Notepad++: git config –global core.editor “‘C:/Program Files (x86)/Notepad++/notepad++.exe’ -multiInst -notabbar -nosession -noPlugin” Or, the following can be issued on the command line on either 32-bit or 64-bit Windows. It will pull the location of notepad++.exe from … Read more

Is there a way to put multiple projects in a git repository? [closed]

While most people will tell you to just use multiple repositories, I feel it’s worth mentioning there are other solutions. Solution 1 A single repository can contain multiple independent branches, called orphan branches. Orphan branches are completely separate from each other; they do not share histories. git checkout –orphan BRANCHNAME This creates a new branch, … Read more

git: patch does not apply

git apply –reject –whitespace=fix mychanges.patch worked for me. Explanation The –reject option will instruct git to not fail if it cannot determine how to apply a patch, but instead to apply the individual hunks it can apply and create reject files (.rej) for hunks it cannot apply. Wiggle can “apply [these] rejected patches and perform … Read more

How can I view prior commits with git blame?

git blame -L 10,+1 fe25b6d^ — src/options.cpp You can specify a revision for git blame to look back starting from (instead of the default of HEAD); fe25b6d^ is the parent of fe25b6d. Edit: New to Git 2.23, we have the –ignore-rev option added to git blame: git blame –ignore-rev fe25b6d While this doesn’t answer OP’s … Read more