How to count git commits per user in a date range?

The command git shortlog -sne is exactly what I need, but I want to be able to specify a date range for that which isn’t an option for shortlog. Is there another way to accomplish this same thing, but for a specific date range?

git clone and checkout in a single command

The following is the command I use to checkout a specific commit. git clone git://repo.git/repo123 git checkout <commitID> I want to do the above in one step – using a git clone command only. The reason why I want to do this is, repo123 is very huge. So checking out the commit I want will […]

Is there any distributed revision control system that supports partial checkout/clone?

As far as I know all distributed revision control systems require you to clone the whole repository. For this reason is it not wise to put huge amounts of content into one single repository (thanks for this answer). I know that this a not a bug but a feature, but I wonder whether this is […]

Is it possible to define own syntax on a GitHub repository?

I’m writing a small DSL, and I’m curious if it’s possible to somehow show it in a language bar above the repository source where all languages are listed by percentage of using or GitHub administration needs to allow that language? For example, I’m writing a Ruby project with the DSL called Puppy, and I want […]

Use git stash save or git commit for local changes?

I changed some files in my repo, but don’t want them to be pushed public or create any temporary branch to store them. I just want to save these changes in somewhere. So which command is better: git stash save “save message” or git commit -am “save message” ? If I use git commit, is […]

how to completely replace code in a git repository

I have a Facebook application on my local machine and another created with Heroku (the code in the Heroku application was created automatically by Heroku). I’d like to completely replace the code within the Heroku application with the code on my local machine. I’ve already initialized a git repository in the directory on my machine […]

How to copy a commit from one branch to another in git without any merging?

I have 2 branches a master and an experimental. A shown: master-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-Y \ -x-x-x-x My experimental is quite outdated and i was hoping to update it by simply copying the last commit in the master branch (Y) to experimental: master-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-Y \ -x-x-x-x-Y If possible, I don’t want to have to do any merging I want […]

Which code is shared between the original Git and libgit2?

Which code and how much code do the original Git codebase and libgit2 have in common (from nothing to all Git functionality except of command line client entry points)? I’m primarily interested in how “stable” libgit2 is and how easily and quickly bug-fixes and/or improvements from future development in the original Git codebase can be […]

How can I find a file in my git repository with SourceTree?

How can I find a file in my git repository with SourceTree? Currently, the file has to be present in some branch log, but I want to search on the repository. I want to: right-click the file Log Selected… and peek at it’s history. The SourceTree file history is quite good.

Git – corrupted object?

My house just suffered a power-outage and now my git repo (which I was committing to when it happended) is reporting: user@localhost$ git fsck fatal: object 192e0282d23863ec80375a77011012ef8cb80f77 is corrupted I can’t commit because of this error. Pulling and fetching still seems to work fine. user@localhost$ git commit error: unable to find 192e0282d23863ec80375a77011012ef8cb80f77 fatal: 192e0282d23863ec80375a77011012ef8cb80f77 is […]

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