git

heroku using git branch is confusing!

Ok, so I have a big github project that i'm not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but for example if I only have my branch, it even acts like there's no code on the server. I can't even get my gems installed since the .gems ...

SSH Public key denied on "git clone" command.

I am trying to clone a git repo that I forked in my GitHub Repository.It's a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied it onto my GitHUb public keys. When I try to git clone "public url" , It says public key denied. I tried an ssh [email protected] to verify my ...

using git, how to do a 'use theirs' during a conflict?

With git, can I do a 'use their's type command do just overrite my local version with the origin's version? ...

What is a trivial merge in git?

Sometimes when I do a pull instead of a rebase after a simple one file change commit I see the following in the master log: Trivial merge But there's no diff of what changed? What's the point of this log message? Did anything change I don't know of? It scares me. ...

How to handle widespread code format changes in a git repository

We have a project with around 500,000 lines of code, managed with git, much of it several years old. We're about to make a series of modifications to bring the older code into conformance with the developer community's current standards and best practices, with regards to naming conventions, exception handling, indentation, and so forth...

git push heroku master permission denied on VISTA

(Using Vista)I'm trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I've tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go perfectly. I have it on my C:/Users/***/.ssh folder. I now try to clone an app i forked in GitHub. When I try to clone it on the rails_apps dir...

To hook into Git, would Ruby have an advantage over c#?

If I wanted to be able to do all things GIT via C# i.e. creating a c# wrapper so I can do things over the web (view repositories, files, diff of files etc). Would Ruby have any advantages over c# (and .net)? ...

How to display metainformation about single commit in git

I'd like to parse metainformations from git repository. I'd like to fetch a single information for a commit, as in git log --pretty=format:%an HEAD^..HEAD Problem is, this is not working for the first commit in repository. git show --pretty=format:%an HEAD^..HEAD is also close to what I want, except I'm not interested in parsing ac...

Sharing git between different users

I currently have a git setup where git is a user on my linux box. /home/git exists and there are several git repositories in /home/git. The git user has a shell of /usr/bin/git-shell. If a user needed access to the repository, I'd just grab their SSH DSA public key and embed it into /home/git/.ssh/authorized_keys and they'd be able to wo...

Generating statistics from Git repository

I'm looking for some good tools/scripts that allow me to generate a few statistics from a git repository. I've seen this feature on some code hosting sites, and they contained information like... commits per author commits per day/week/year/etc. lines of code over time graphs ... much more Basically I just want to get an idea how muc...

How do I import an existing CVS module into a subdirectory of an existing git repository

I'm resurrecting a rather old code project, from when I was using CVS regularly, as a component in a new project that I've already been working on using git. I still have access to the CVS archive the old project's module is in, so I was just going to use git-cvsimport to get the commit history and go from there. However, this is just cr...

Git: removing a file from being versioned, but not deleting it

I have a file which ended up being versioned in our repository but shouldn't have been. For arguments sake, the file is config.py. We instead version config.py.tpl but never the actual production config for the obvious reasons. What's the right way to stop versioning this file without deleting it locally from the working directory? Also...

GIT svn how to update a path

When using svn, I update a repository with the following command. TortoiseProc.exe /command:update /path:"c:\FoldToSVNRepository" TortoiseProc.exe /command:update /path:"c:\FoldToSVNRepositoryTwo" TortoiseProc.exe /command:update /path:"c:\FoldToSVNRepositoryThree" How would you do the equivilant with the command git svn ? I've had a ...

How do I check if a repository is bare?

I'm getting the warning warning: You did not specify any refspecs to push, and the current remote warning: has not configured any push refspecs. The default action in this warning: case is to push all matching refspecs, that is, all branches warning: that exist both locally and remotely will be updated. This may warning: not necessaril...

Copying minor updates to another branch with git

I've started playing with git locally, and have come up against a use case that I'm not sure how best to handle. I'm working on a spike in a branch, but then come across a simple correction that should also apply to master. The best I've found for the moment is: git stash git checkout master //do my correction manually git commit -a gi...

GitHub git remote add origin [email protected]:username/ProjectName a one time process ?

if I have two git projects on my machine with two different ProjectNames can I manage it with this code in two directories like this /foo1$ git remote add origin [email protected]:username/ProjectName-1 /foo2$ git remote add origin [email protected]:username/ProjectName-2 Is it getting stored in the directory or in a git config file in sys...

Does grit have to be on the same server as the repositories?

Just looking at http://github.com/mojombo/grit Curious, if grit is on a web server, and the git repositories are on another, will this still work or it HAS to be on the same server? Or does it use remoting somehow? ...

git: command not found

I am receiving this error when I try to use git lately. I'm not exactly sure when the error started as I rarely use git. I used to use it. I didn't change anything about it or my machine that I know of. Now it doesn't work. I've gone through and reinstalled the latest version using this installer, and I still get the same error in te...

What is mkmf.log and why does it keep showing up in my app root?

Have an app that uses git for version control. A file called mkmf.log keeps showing up in the app root, somewhat randomly. What is it? It contains: find_executable: checking for git... -------------------- yes -------------------- Relevant info from ls: $ ls -lah | grep mk -rw-r--r--@ 1 kyle staff 85B Dec 2 15:44 mkmf.log ...

How can I wipe out my local branch in GIT?

I dont' want to deal with any conflicts on my local master branch as the origin (remote) master has changed and I just want 100% of the remote's version. Is there a way to wipe out the local master? (other than just manually deleting and cloning again). ...