Git submodules vs Nuget packages [closed]

I prefer using submodules over Nuget packages for frequently changing internal libraries. Here’s why: Merging: If several developers make changes to the same library at the same time, with submodules, these changes can be merged. With Nuget packages, obviously there’s no concept of merging. Less wait: With submodules, you push, and then pull with whatever … Read more

How does “index f2e4113..d4b9bfc 100644” in git diff correspond to SHA1 ID in gitk?

edit: @wiswit has pointed to this good explanation. f2e4113 and d4b9bfc are file-indexes. With git show f2e4113 you see the file before the commit and git show d4b9bfc shows the file after the commit. The combined diff format is in the git diff manual pages described. COMBINED DIFF FORMAT Any diff-generating command can take the … Read more

git-subtree pull complications

I had the same problem, and in my case it seems to be due to the initial subtree commit being merge-squashed into the master branch. Looking through the subtree source I found this: https://github.com/git/git/blob/master/contrib/subtree/git-subtree.sh#L224 It looks like subtree greps your git log for git-subtree-dir: foo but doesn’t find a suitable commit. Try git log –grep=”git-subtree-dir: … Read more

How do you detect an evil merge in git?

The easiest thing to do would be to diff the results of your conflict resolution with a merge that auto-resolves conflicts without human intervention. Any automatic resolutions will be ignored, since they will be resolved in exactly the same way. I see two ways of visualizing the possible “evil” resolutions. If you are making this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)