git

Suddenly unable to git fetch from origin

In my repository, I remotely track our main repository, which is bare. I've never had any problems with fetching from origin the past. However, when I tried to remote update this morning, I got the following error: fatal: '/users/integrator/project' does not appear to be a git repository fatal: The remote end hung up unexpectedly erro...

How do I install the latest BioPerl version when using perlbrew?

I'm using perlbrew and I would like to install the latest bioperl version. Should I use cpanm or git? If git - do I just install as usual (AKA git clone ... then make and build), or should I do anything special? UPDATE Specifically, I'm not sure I understand the following expert from BioPerl Using Git manual: Tell perl where to fi...

Git subtree merge strategy, possible without merging history ?

I've been trying to move away from submodules in order to get a self-contained repository, and the subtree merge strategy seems to match this use-case. However the merged repos' histories appear in my own project's history, which is reather annoying. I've tried git filter-branch --subdirectory-filter path/to/subtree/ HEAD which works.....

Use git as live mirror

Hi, I have local machine (A), testing server (B) and repository server (C). I have following workflow: Code something on A Mirror changes to test machine B If it works well commit from B to C For now, I use rsync for mirroring, but since repository grows it takes some time (~10 sec) to get file list from B. I want to use Git instea...

Git push -f vs. +

What is the difference between doing: git push -f origin my-branch:my-branch and git push origin +my-branch:my-branch ? ...

How to use git difftool to diff merge conflicts?

After a merge failed with some conflicts I can list those with git diff, but git difftool won't display them with the difftool set in the config(in my case Kaleidoscope), instead it will just use normal diff. A git difftool comparing with a previous commit will work. Is there a way to use git difftool on merge conflicts? Greets Jan ...

Git's blob data and diff information.

As far as I know, Git's blob has SHA1 hash as file name. in order not to duplicate the file in the repository. For example, if file A has a content of "abc" and has SHA1 hash as "12345", as long as the content doesn't change, the commits/branches can point to the same SHA1. But, what would happen if file A is modified to "def" to have...

Write git commit message before 'git commit'

I'm learning Git coming from Perforce. As far as I can tell you must write the commit message in the same step as when you commit. Or am I missing how I might write the message earlier and have it hang around until I'm ready to commit. I really liked the workflow in perforce where you can edit the changelist description at any time, a...

How to have the working dir of a repo in another dir than the .git folder?

I have a repo in dir ~/myRepo/. Because I want to use this repo across multiple machines, I want to have the .git folder in my dir ~/Dropbox/. I know, that there was some ability to create a file in ~/myRepo, which contains a path to the git-folder ~/Dropbox/myRepo.git, but I forgot which and cannot find the information in the man-pages...

How do I create a new branch based on an existing Git hub branch? (Please read - tried the beginners guide)

I have a master branch and would like to create a new branch based on it, and then switch to the new branch. I'm very very new to coda/github/terminal so I don't even know if my syntax is correct. here's what I typed in, letter for letter, with the exception of the branch names which are placeholders: git checkout -b $newbranchname ...

php remote development workflow: git, symfony & hudson

Edited: (after seeing Luke's answer) I'm looking to develop a website and all the work will be done remotely (no local dev server). The reason for this is that my shared hosting company a2hosting has a specific configuration (symfony,mysql,git) that I don't want to spend time duplicating when I can just ssh and develop remotely or throu...

Hudson git failed to send out build failure email to

How to configure the git user.name to enable Hudson send out email to the user who commit code? I just follow the standard way to configure the git user.name with "User Name (userid)", see below. git config --global user.name "Euler XXXX (euler)" git config --global user.email "[email protected]" Then I commit the code t...

Setting Commit and Checkout Privileges for a Git Repository

We are having a local repository which is accessible to a large number of people. We have to set up a Git repository there such that only certain users have checkout as well as commit privileges. How can we do that. P.S. : This is a part of our homework assignment in which we have to develop a game and update it using a Git repository. ...

Eclipse git client with upload-pack support

I tried Egit but there seems to be missing an option for specifying a custom upload-pack binary. Are there any patches or Gui alternatives for this to work ? ...

Push git commits & tags simultaneously

I'm aware of the reason that git push --tags is a separate operation to plain old git push. Pushing tags should be a conscious choice since you don't want accidentally push one. That's fine. But is there a way to push both together? (Aside from git push && git push --tags.) ...

Git error: "fatal: .. does not appear to be a git repository" - when deploying via Capistrano

Background: I'm aiming to deploy a rails app and am hosting a remote repository for this app on DreamHost. I am using Git for version control. I have created a local repository, committed and pushed this to the remote repository via ssh. This is roughly the process I took in creating the remote repository. I seem to have created the remo...

How to port a project?

Hi, I want to port a simple game someone else has written in Java to GWT. He organized it mainly into two packages: One for the user interface and one for the game logic. Hopefully, I can reuse his game logic and just rewrite the user interface, but I might need to change some things in order to make it compile with GWT. I'm wondering ...

git push origin master failed.

hello I want to push my code to github.com. I use win Xp and git-bash 1.7.2.3 And I got following success message during ssh testing. But "git push origin master" command require username and password. debug1: Entering interactive session. ERROR: Hi xxx! You've successfully authenticated, but GitHub does not provi de shell access ...

GIT: commit changes to old/safe branch while in new/dirty/dev branch without checking out or losing unstaged data

I created a new Branch before I started dev on something experimental. I usually forget that (which isn't a problem), but now I did it beforehand. Since then I have updated 3 files. In 2 are only experimental changes that I DON'T want committed to the safe branch. In 1 are only safe (minor) changes that I definitely DO want committed...

Clone a git-svn repo by getting all of the svn part from the original svn repo

How can I clone a git repo from my laptop (at home) to a server (at university) while getting most of the repo from a third (svn) repo at another uni that is the main codebase. I'd like to minimise the amount of home<->uni traffic by maximising uniOne<->uniTwo traffic. this is what I have now on Laptop: --o--o--o---o---o---o git-s...