How do I pull from a Git repository through an HTTP proxy?

You can also set the HTTP proxy that Git uses in global configuration property http.proxy: git config –global http.proxy http://proxy.mycompany:80 To authenticate with the proxy: git config –global http.proxy http://mydomain\\myusername:mypassword@myproxyserver:8080/ (Credit goes to @EugeneKulabuhov and @JaimeReynoso for the authentication format.)

How can I specify a branch/tag when adding a Git submodule?

I’d like to add an answer here that is really just a conglomerate of other answers, but I think it may be more complete. You know you have a Git submodule when you have these two things. Your .gitmodules has an entry like so: [submodule “SubmoduleTestRepo”] path = SubmoduleTestRepo url = https://github.com/jzaccone/SubmoduleTestRepo.git You have a … Read more

Pull latest changes for all git submodules

If it’s the first time you check-out a repo you need to use –init first: git submodule update –init –recursive For git 1.8.2 or above, the option –remote was added to support updating to latest tips of remote branches: git submodule update –recursive –remote This has the added benefit of respecting any “non default” branches … Read more

How do I “git clone” a repo, including its submodules?

With version 2.13 of Git and later, –recurse-submodules can be used instead of –recursive: git clone –recurse-submodules -j8 git://github.com/foo/bar.git cd bar Editor’s note: -j8 is an optional performance optimization that became available in version 2.8, and fetches up to 8 submodules at a time in parallel — see man git-clone. With version 1.9 of Git … Read more

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