Git push/clone not working using HTTPS without any sort of firewall/proxy only in Ubuntu

Git push when using HTTP gives this fatal: unable to access ‘https://github.com/something.git/’: Failed to connect to github.com port 443: Network is unreachable While git clone gives this fatal: unable to access ‘http://github.com/something.git/’: Failed to connect to github.com port 80: Network is unreachable The same works on Windows using HTTP on same machine and on Ubuntu […]

Cannot change username on Gerrit, after changing github username

I had github username “Old_UserName” and it worked well with gerrit, as in, I was able to commit and get a review. On the gerrit website (review.openswitch.net) the username “Old_UserName” was automatically setup using github’s credentials. Everything worked fine, until I changed my username on github to “New_UserName”. But on gerrit website (review.openswitch.net), I still […]

Why doesn't bower install <gitRepoAddress> install what I see on the git repo?

I am trying to use bower to install https://github.com/angular-ui/ui-map but using bower install angular-ui-map does not produce what I see in the git repo. In my understanding this is because the version has to be tagged as the latest (or something there abouts) so I am not getting what I expect. I thought using bower […]

How to rewrite a repo on Git

I’m working on a Magento project, and and I have the directory called Magento2 init as a git repo. However, I usually work on a repo of Magento2/app/code/Vendor/Module and when I have to save my work, I use git add app/code/Vendor/Module Then commit. As you can guess, the remote repo’s source says app/code/Vendor/Module. A new […]

How to determine last merged branch in git?

I need to determine which was the last branch merged into master. I have been searching around the git docs but I am still a bit lost. So far I have found the command (assuming master is my current branch) git log –oneline –graph –decorate Which provides me an output like this git log –oneline […]

git add submodule with depth and branch options

Using git 2.4.3 (Fedora 22), I can clone a repo using the –depth and -b options: $ git clone –depth 1 -b release https://github.com/adobe-fonts/source-code-pro.git fonts/source-code-pro Cloning into ‘fonts/source-code-pro’… remote: Counting objects: 114, done. remote: Compressing objects: 100% (113/113), done. remote: Total 114 (delta 1), reused 105 (delta 1), pack-reused 0 Receiving objects: 100% (114/114), 7.27 […]

npm installed pre-push hook linked to a custom script is always skipped

I wanted to stop all developers from being able to do a git push to master (–force excluded). Instead of asking everyone to create a pre-push file in .git/hooks folder, I wanted to automate the process using npm and add the required files to the remote git repository. I added to the “pre-push” in package.json […]

how jenkins in a docker access git-repo of gitlab in another docker

I installed both gitlab–docker and jenkins-docker on the same server(my laptop): docker run –name gitlab-postgresql -d \ –env ‘DB_NAME=gitlabhq_production’ \ –env ‘DB_USER=gitlab’ –env ‘DB_PASS=password’ \ –volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \ quay.io/sameersbn/postgresql:9.4-5 docker run –name gitlab-redis -d \ –volume /srv/docker/gitlab/redis:/var/lib/redis \ quay.io/sameersbn/redis:latest docker run –name gitlab -d \ –link gitlab-postgresql:postgresql –link gitlab-redis:redisio \ –publish 10022:22 –publish 80:80 \ […]

Bitbucket says the branch is merged, but the code is missing and git has no record of the merge

One member of my team created a branch and made some code changes there. He then created a pull request in bitbucket for his branch. After couple of days, he approved the pull request and Merged it to the main branch via bitbucket. So now bitbucket says that the branch is merged, but when I […]

Uncommited changes persist in checkout, generate no warnings

I’m getting some strange behavior from git. Previously, if I made some changes on branch_A, did not commit, and tried git checkout branch_B, I got a warning to commit or stash my changes first, and then after I did so, I could checkout branch_B and it worked fine. All of a sudden, this has stopped […]

Git Baby is a git and github fan, let's start git clone.