git

git + grit working directory revision information

I'm trying to display some git version information (via grit) in my rails application footer for debuging. When I want to see the head, it's straightforward: @git_repository = Grit::Repo.new( Ter::Application.root ) head = @git_repository.heads.first t '.git_info', :revision => head.commit.id, :branch => head.name, :author => head.commi...

Hudson CI server and git plugin: Why do I get ERROR: Nothing to do?

I'm trying to get hudson setup on a Debian server to build a rails project, and its constantly falling over at the first hurdle. I get the following sequence of messages everytime I try to run a build: Started by user anonymous Checkout:workspace / /var/lib/hudson/jobs/myproject/workspace - hudson.remoting.LocalChannel@2d61100c Using s...

git - pushing specific commit

I have made several commits on different files, but so far I would like to push to my remote repository only a specific commit. Is that possible? Thanks ...

GIT - what is its max file size and max repository size limit?

Hi all, Im looking to have GIT as the primary source control for my employer (250 people) company. Before proceeding further I would like to have answers to the following questions. (1)Does GIT have any specific max file size limit that it can handle, if yes please provide the numbers. (2) What is the max repository size recommended by...

How to see all tags in a git repository in command line

Is there something like "git show tags"? ...

Show new revisions in gitk after git pull

After I do git pull, I want to see the revisions I just fetched in gitk. How can I do this? I know I can see what revisions to use in the output of git pull and I can give them as a parameter to gitk, but I want to do this automatically. (Actually, I don't need to see all the fetched revisions, those from the current branch are sufficie...

How can I visualize per-character differences in a unified diff file?

Say I get a patch created with git format-patch. The file is basically a unified diff with some metadata. If I open the file in Vim, I can see which lines have been modified, but I cannot see which characters in the changed lines differ. Does anyone know a way (in Vim, or some other free software that runs on Ubuntu) to visualize per-cha...

Git: post-receive email hook to show an html formatted color diff?

I've got a diff e-mail sending using Git's post-receive e-mail hook (thanks to this SO post) but the e-mail that it sends is just plain text. I'd like something a big more colorful and well formatted. Is there a script or something I can run using the post-receive hook that will send a nicely formatted diff e-mail instead of the plain t...

How do I avoid committing small changes in git?

I'm wondering, how could I avoid a commit in really small changes of code. For instance, sometimes I miss a space between parameters or that kind of tiny code formatting. The reason I ask this is because later I have to push my commits to a remote repository and I don't want to include those small changes. Any ideas? Thanks ...

Git - how to always take a my branch's content when hitting a conflict?

Hi there, I saw the post "How do I tell git to always select my local version for conflicted merges on a specific file?", which says if you have conflict on a folder, we need to add .gitattributes to that folder and then add a merge driver to config file to say always keep my branch's content for this folder. And this works perfectly fi...

git nested repositories - submodules vs. symbolic links vs. other

I'm trying to setup my (Zend Framework) development environment (or more importantly my directory structure) with git. However, my underlying question really has nothing to do with the specific libraries involved but more importantly how to get git to accomplish what I am wanting. I'm going to have my project root be /home/jsuggs/proje...

Git: How to ignore a file from one repo and add it to another?

I have a Ruby on Rails application that I am trying to host on Heroku. I would also like to use a GitHub public (free) repository to track changes. I need to check-in a file containing passwords to the Heroku remote repo, but ignore the file so I don't check it in to GitHub. Is there a way I can add the file to one repo, and ignore it fr...

Portable gcc executable?

So I'm trying to break a few rules quietly. GoDaddy doesn't seem too keen on letting me have Git, and for some reason think that one needs root access to run any gcc (crazy web-hosting support teams). As I try to convince them to do what I tell them to, I'm trying to find a gcc that I can send to my server so I can build git on my own an...

git commit fails due to insufficient permissions

I am gettting the following error while trying to commit to a local repository: error: insufficient permission for adding an object to repository database .git/objects I created another repository to compare the permissions of .git and .git/objects and everything works fine in the new repository, and the permissions are the same (drwxr...

Best way to incorporate external django app into a project and safely make local changes

Hi, I am working on an ecommerce site, based on django-lfs, and I am finding that I need to make a number of changes to the django-lfs core files... i.e. adding additional properties to models, updating views, adding url patterns etc. I started out placing django-lfs in my pythons site-packages path with the view that if i needed to mak...

What are the files from the 'make' of git that I actually need to run git?

I'm trying to "portablize" git, so I want to send the required executables from the make process of git to my hosted web server. Can I do that? Do you think the executables will work? ...

Checkout remote branch using git svn

I have checked out a svn repository using git svn. Now I need to checkout one of the branches and track it. Which is the best way to do it? ...

Git revert merge to specific parent

I have a git repo and am having trouble reverting a merge. The current hash is 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3. and it has two parents: df1acf5f54426d30f12c6b4558c3dd922297aae3 e19b912404ffd3c153ccac3072dbf22396896d2a doing the following will revert to df1acf5f54426d30f12c6b4558c3dd922297aae3 git revert -m 1 0ce2ca0b35f59af2...

How to pull and check-out remote Git repository

OK, total noob question, for msysgit on Windows 7, but I have a remote repository (on unfuddle), create on one PC, and now I want to pull it down to another PC. I tried 'Fetch' using Git Gui, but the folder still only has a .git subfolder. It took a while pulling it down, so I assume there is something in the repo, but how do I check ...

Git recover uncommitted changes

I had a lot of local changes. I just accidentally did git merge another_branch git reset --hard HEAD^ on a lot of work. :( with the intention I didn't want the merged changes in here. How do I recover the original state? No, the local changes were never committed/stashed. No way? ...