What does git rev-parse do?

What does git rev-parse do? I have read the man page but it raised more questions than answers. Things like: Pick out and massage parameters Massage? What does that mean? I’m using as a resolver (to SHA1) of revision specifiers, like git rev-parse HEAD^ or git rev-parse origin/master Is this the command’s purpose? If not, […]

Repository access denied. access via a deployment key is read-only

After successfully cloning my repo from heroku and added another remote 1/ git clone git@heroku.com:[APP].git 2/ git remote add bitbucket ssh://git@bitbucket.org/[ACCOUNT]/[REPO].git 3/ git push bitbucket master I am still getting this error after running line (3) or using SourceTree conq: repository access denied. access via a deployment key is read-only. First I don’t understand what […]

How to clone all repos at once from GitHub?

I have a company GitHub account and I want to back up all of the repositories within, accounting for anything new that might get created for purposes of automation. I was hoping something like this: git clone git@github.com:company/*.git or similar would work, but it doesn’t seem to like the wildcard there. Is there a way […]

How to sign out in Git Bash console in Windows?

I’m using Git, on Windows, version 2.9.2.windows.1. I work on a repository project and when I do a push, it asked me to enter my Github Username and Password. I entered both my Github Username and Password to update the project. In my next push, it doesn’t ask for my username and password anymore. All […]

Color in git-log

When you run git log –decorate –pretty=oneline the output will have entries like (HEAD, refs/published/master, master) with coloration. I also have the following in my gitconfig: [color “branch”] current = yellow reverse local = yellow remote = green How do you replicate those colors when doing a custom format like the following? git log –decorate […]

Best way to add Gradle support to IntelliJ Project

I have looked around quite a bit and haven’t found the best solution to convert an existing IntelliJ project to Gradle. I work in a team environment and we currently share the .ipr file as we have a few build configurations that we track. We will be getting rid of those in favor of Gradle […]

Git checking out problem

I’m running a Ubuntu (9.10) server with Git (latest from Ubuntu package manager) installed. Access to the Git is via SSH. On windows machines, I’m using Cygwin to push/pull code. I can push my project code onto the server but when I do a clone or pull, it returns a [fatal: early EOFs] error at […]

How to update a git clone –mirror?

I have created a git repository to mirror a live site (which is a non-bare git repository): git clone –mirror ssh://user@example.com/path/to/repo Now, to keep this mirror clone updated with all changes from its remote origin, which command or commands I must use? I’d like to keep everything updated: commits, refs, hooks, branches, etc. Thanks!

Using conditional configuration files with Git

I frequently find myself changing a single variable in my project within Git to connect to a different server while on the Development branch (in JavaScript, so I can’t use preprocessor defines). Is there some way in Git that I can conditionally use one file or another depending on what branch I’m on? I can’t […]

What's the best practice for putting multiple projects in a git repository?

As some reason, I only have one repository to use. But I have multiple projects including java projects, php scripts and android apps. Now my problems is, I have to put them to different sub-folders for each projects; and for php projects and java projects, I use different IDE. You know, each IDE can have […]

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