What are the ethics & etiquette of forking someone else's github project to release it as a gem?

I’m doing some spare time coding around CultureGrid. They have a SOLR API to access 1.2m cultural artefacts. I’ve released a gem to consume their service, but I’ve got a nice idea about using Datamapper with a SOLR adapter backend to do it in a better way. I just found a project from last year […]

git and C++ workflow, how to handle object and archive files?

I use git to interface with an SVN repository. I have several git branches for the different projects I work on. Now, whenever I switch from one branch to another using ‘git checkout ‘, all the compiled executables and object files from the previous branch are still there. What I would like to see is […]

Username and password in command for git push

It’s possible to clone down a git repository, specifying username and password in the command. Example: git clone https://username:password@myrepository.biz/file.git Is it is possible to also specify the username and password when pushing? So that, for example, running git push origin –all will then output asking for a password. I want this in one command. (I […]

Amending the message of Git commit made before a merge

I committed some test code before merging in a remote branch. This merge had a lot of conflicts and took some serious time to put right. So my history looks something like this: 7ab562c Merge from remote branch … whole load of commits brought across from the remote branch… f3e71c2 Temporary TESTING COMMIT The test […]

When would one need git-rebase?

Everytime I read the git–rebase documentation, I get lost. It feels to me like a kind of a low-level operation (read: dark magic). Quoting the docs: Assume the following history exists and the current branch is “topic”: A—B—C topic / D—E—F—G master From this point, the result of either of the following commands: git rebase […]

How to retain commit gpg-signature after interactive rebase squashing?

When I want to squash some commits by interactive rebase: git rebase -i HEAD~3 And then: pick cbd03e3 Final commit (signed) s f522f5d bla-bla-bla (signed) s 09a7b7c bla-bla (signed) # Rebase c2e142e..09a7b7c onto c2e142e … The final commit haven’t gpg-signature despite that all of those commits have same signature. Is it possible to retain commit […]

git and CR vs LF (but NOT CRLF)

This may sound like a redundant question (and may very well be a redundnant question) but I can’t find the answer. Here’s the situation: My application is creating text files that have CR’s as line endings. More specifically I’m not explicitly setting the line endings to CR, it just happens to be the output of […]

Converting svn to git, how to get the branches not to be just remote in the svn repo?

I’m quite new to git and I’m trying to move a svn repository to git. I followed the guide below so now I have a git repo on my server http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/ So, if I do “git branch” git replies “* master” and if I do “git branch -r” i get a list of all the […]

How to get commit history for just one branch?

Let’s say I created a new branch my_experiment from master and made several commits to my_experiment. If I do a git log when on my_experiment, I see the commits made to this branch, but also the commits made to master before the my_experiments branch was created. I would find it very useful to see the […]

Add ignored config file to git repo as sample

I have an repository for an app that I’m working on that includes a configuration file. Currently, I distribute with a .dist extension, and have the user rename the file before editing it. nate:~/myAwesomeApp% git ls-files .gitignore README config.dist glorious_support_lib.p bestProgramEvar.f90 This is fine and dandy, and the actual config is ignored. nate:~/myAwesomeApp% cat .gitignore […]

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