git

git pre-auto-gc hook not invoked at all

Hello, I would like to use the git pre-auto-gc hook but it doesn't seem to be invoked at all. The file is executable and I tested it with git 1.7.1 and 1.5.6.5, neither of these seems to work as expected (they're not invoking the script when git gc --auto is run). Does anyone of you know something about it? Maybe I need to setup somet...

Is it possible to revoke commits?

Assume we have a repository and 5 commits: commit 1 commit 2 commit 3 commit 4 commit 5 And now I realize commits 4 and 5 are a bad idea. I want to completely remove all changes committed in commit 4 and 5. How to do it? ...

How can I detect whether a git commit is a parent of other commits?

I'm writing a script that makes some trivial changes and then commits them to git. Because these are trivial changes, I want to do git commit --amend whenever I can get away with it -- specifically, when an amend won't "mess up" any other branches' history. If an amend would mess up another branch, I want to do a standard git commit inst...

Gitosis Error: Receiving 'Read Access Denied' on previously accessible repository.

The Players I've been using git and gitosis for some months now, and am really loving both. Unfortunately, I have run into a problem accessing one of my projects with gitosis. The Set-Up I set up my git and gitosis installs on a hosted server account running Debian. I also set up four computers (two Ubuntu, two Windows) with separ...

GIT: Get Bash Here on network location

Hello, When I do 'Get Bash Here' on a network location the console isn't in that directory. Instead the directory is /c/Windows. Is this a limitation of Git Bash? ...

tortoisegit does not pull

I am new to Git. I installed msysgit, configured ssh and pulled a solution from GitHub (my own solution, I pushed it from a different computer). The pull worked. Now, I installed tortoisegit to make life easier. It displays the correct items in Windows Explorer. I would expect a "pull" and push entries in the context menus, but I can'...

Anyone else using msysgit netinstall for general development environment on windows ?

The mingw site is kind of confusing and the installation instructions convoluted. I had been using the codeblocks distribution of mingw.I had also tried the development environment that comes with octave. But the msysgit netinstall seems to work better out of the box for building most things that require: ./configure ; make ; make instal...

Copying different git repository content and preserving specific directories content and history

Hi all, I have git repositories rA and rB, I would like to copy only specific directories in rA and preserving their history, e.g. rA - d1 - d2 - d3 - d4 rB (with d1 and d2 preserved) - d1 - d2 What I have done so far is: git remote add -f rA /path/to/rA git merge -s ours --no-commit rA/master That gives me all the files in ...

How can I git pull --rebase but taking all remote changes?

Hi, I did a 'git fetch' and then a 'git pull --rebase'. It is trying to merge changes from the remote branch to my local branch. And there are some merge conflicts. So I did a 'git reset --hard'. My question is it is possible for me to ask git pull to take the remote change whenever there is a conflict? Thank you. ...

Unable to clone directly into a git tag using -b <tagname>

I'm a bit puzzled why I'm unable to checkout a tag directly from the git clone command. What I try to do is: git clone -b mytag <url>/foo.git The error I get is: warning: Remote branch mytag not found in upstream origin, using HEAD instead Tag is present and e.g. cd foo && git checkout mytag ...works well. If anyone could sh...

Export git repository to svn

Hi, cloning an svn repository into git is easy with git-svn. However, I need to do it the other way round. I have a git repository lying around and want to import it into an empty (except from trunk, branches and tags folders) keeping all the commit information. I cerate a git-svn-clone of the svn repo, pulled the git master and dcommi...

In Git, how can I write the current commit hash to a file in the same commit

Hello everyone, I'm trying to do a fancy stuff here with Git hooks, but I don't really know how to do it (or if it's possible). What I need to do is: in every commit I want to take its hash and then update a file in the commit with this hash. Any ideias? ...

How to release with Git?

I have a basic question about Git: Let's say there is subdomain git.mysite.com with git installed in it. My actual site is on mysite.com. How do I tell Git to "release" a specific or latest commit to mysite.com? I use MediaTemple(gs) for my hosting. Site is in /domains/mysite.com/html and Git is in /domains/git.mysite.com/html/mysite.g...

How do you get a git project without git-clone?

I'm trying to get started using git. Our project is in a directory with a base development system. I've got it set up great for myself, but I can't get the files over to my collaborators. We can't do a git clone since it has to clone to an empty directory. I tried initializing a repository in the dev directory on one of the systems, ad...

git still untracked after add

Hello, Everytime I do git status there is this folder that appears as untracked. $ git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/error/ nothing added to commit but untracked files present (use "git add" to track) Even after doing git add ., git commit...

List commits made by others (i.e. not me)?

Is there a standard way to list all the commits made by others (i.e. not myself) in a git repository? I tried git log --not --author=username, but it would appear that --not only applies to revisions. The manpage for git log doesn't appear to offer a way to invert predicates like --author. (I use git-svn at work, and want a way to see ...

multiple commands are not working in git post-receive

I'm using git with trac. After push I want two thing to be done: Sending email to development team with diff If there is some special phrase in commit message (like "see #1"), then I want the commit message to be placed in trac ticket. The first thing is solved by git-commit-notifier. It works perfectly after I have created post-rece...

How to get netbeans working git?

Hey Guys, I want to use a repository i hosted on github but it seems like netbeans uses a wrong fingerprint. So I get an Exception everytime I try to clone the repository. Its like : UnknownHostKey: github.com. RSA key fingerprint is xxxxxxxxxxxx etc. And it aborts. Any idea? Ive tried it with tortisegit and it works fine ... but I th...

How to copy git repository including only one subfolder?

Is there a way to create a new git repository from an existing one, the new repository should include only files located in the specified subfolder and only commits that affects these files? ...

hg clone git:.... aborts: failing connection?

When trying to clone a git repository using Mercurial over hg-git: hg clone git://github.com/rails/rails.git destination directory: rails importing Hg objects into Git abort: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host ha...