Git

warning: Creating default object from empty value in /mnt/data/accounts/m/mirousek/data/www/eu/mirousek/www/modules/taxonomy/taxonomy.pages.inc on line 33.

Jenkins Git Fetch sometimes hangs

Sometimes when job build is started it hangs and just first line of log is shown. You have to manually abort the build and run again.

This happened on Windows. Here is solution which worked for me (although I don't know actual cause of problem): Jenkins called
git.exe
from bin directory (the actual executable run was
bin/git.exe
). If I changed the called program to
cmd/git.exe
everything started to work fine, no more hangs.

Source: http://blog.cgdecker.com/…dson-on.html

Keywords: Git, Jenkins, Windows

Removing wrongly created branch from Git

If you accidentally fetched branch or branched local one and named it incorrectly (remotes/master instead of remotes/origin/master):

$ git branch -a
* master
  remotes/master
  remotes/origin/master

You can't delete it using

$ git branch -d "remotes/master"
error: branch 'remotes/master' not found.

But you have to use

$ git branch -rd master
Deleted remote branch master (was d980b5e).
Keywords: Git, remove branch
Syndicate content