How to speed up / parallelize downloads of git submodules using git clone –recursive?

With git 2.8 (Q12016), you will be able to initiate the fetch of submodules… in parallel! See commit fbf7164 (16 Dec 2015) by Jonathan Nieder (artagnon). See commit 62104ba, commit fe85ee6, commit c553c72, commit bfb6b53, commit b4e04fb, commit 1079c4b (16 Dec 2015) by Stefan Beller (stefanbeller). (Merged by Junio C Hamano — gitster — in … Read more

Git – Do colours mean something in vi when I commit?

Vi is giving you a hint about “properly” formatting your commit message. While there is no specific enforcement of one message style w.r.t. another, “traditionally” Git commit messages are structured this way: A short title describing the changeset (usually less than 50-60 characters); One blank line; A more complete description of the commit, optionally divided … Read more

How do I synchronise two remote Git repositories?

Git branches do not have “heads” in the Mercurial sense. There is only one thing called HEAD, and it’s effectively a symlink to the commit you currently have checked out. In the case of hosted repositories like GitHub, there is no commit checked out—there’s just the repository history itself. (Called a “bare” repo.) The reason … Read more

How do I swap the order of two parents of a Git commit?

Actualy, there’s a really cool command I learned recently that will do exactly what you want: git commit-tree -p HEAD^2 -p HEAD^1 -m “Commit message” “HEAD^{tree}” This will create a new commit based on what is currently HEAD, but pretend that it’s parents were HEAD^2,HEAD^1 (note this is the reversed order). git-commit-tree prints the new … Read more

git says “fatal: confused by unstable object source data”

Either one or more files are being modified during your operation, or something is causing inconsistent reads (e.g. failing hardware). Short version: Git’s developers did not intend for it to be used on volatile files. Due to the layout* that Git uses for “loose objects” and the limited filesystem semantics that it assumes**, Git must … Read more

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