Manually extracting reflog when git reflog fails

The HEAD commit object of my .git repo was lost due to a machine crash: $ git rev-parse HEAD 1f411c372caab4767638df0b47be5e2f576cb582 $ git reflog error: object file .git/objects/1f/411c372caab4767638df0b47be5e2f576cb582 is empty fatal: loose object 1f411c372caab4767638df0b47be5e2f576cb582 (stored in .git/objects/1f/411c372caab4767638df0b47be5e2f576cb582) is corrupt It turns out there are only a few files that are corrupted, but because the HEAD commit […]

How can I change which commit is master in sourcetree?

I want to change master to be at the commit “Local settings for Jakov”. Then I want to delete the two latest commits, “Import xlsxwriter” and “Revert “Import xlsxwriter”. Is this possible?

TC fails on files with empty spaces in name on git project

    During TC build I occured with such problem: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project test-project: An error occurred during the status check process: Exception while executing SCM command. Error while executing command. Error inside systemOut parser: Illegal character in path at index 0: “java/releases/13.4.1/Prod/SomeFile%2013.1.1.docx” -> [Help 1]      So that means that […]

A new tag with <tag> gets added in my pom after doing a release on git server

I have a maven-based java project which I released on Bitbucket git server recently using mvn:release perform command and it was successful. However, after the release was done my pom.xml got modified automatically with the code snippet <tag>HEAD</tag> in the tag which kind of surprised me because when doing a release on subversion in my […]

TFS Build tag git branch with build number

All our builds are CI triggered builds. Is there a way to tag the branch with the build number from TFS? This would be come incredibly handy as we are also using Octopus Deploy and would like the entire process to automated, to where all the developer has to do is push the changes to […]

Laravel different environment git .env Xampp & Mamp

i’m using github in combination with laraval for the first time. I have 2 local environments : a) i use MAMP Pro for local development (Mac) b) i use XAMPP for local development (Windows) I made a new repository and pushed to github on environment a) , I cloned this repository on setup b) and […]

git commit fix to project owner

I forked binux/pyspider and made some change.Today I found a bug and want to commit a fix to the owner. I have 4 commit for now, the last commit contain two files(one file to fix bug, one file my edit). And I found the most easy understanding way by John Naegle. But I got error […]

git submodule code review with main

I have a repo called main with a submodule called sub. What I want to do is when I make changes in main or sub for them to be a part of the same Code Review in gerrit. Is there any way to perform this? I can’t seem to find any information to make this […]

Removing large file from git repo, after the repo has been changed/deleted

I made a bit of a mess when I thoughtlessly tried to commit a large file to github. Now I can’t commit anything because git still tries to add the file. I’m getting the following: Counting objects: 39, done. Delta compression using up to 8 threads. Compressing objects: 100% (39/39), done. Writing objects: 100% (39/39), […]

pip install dynamic-dynamodb InsecurePlatformWarning

`I am running AWS EC2 OS:ubuntu 14.04 python –version Python 2.6.9 pip –version pip 7.1.2 from /usr/local/lib/python2.6/site-packages (python 2.6)` $>pip install dynamic-dynamodb `Collecting dynamic-dynamodb /usr/local/lib/python2.6/sitepackages/pip/_vendor/requests/packages/urllib3/util/ InsecurePlatformWarning: A true SSLCoenter code herentext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see […]

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