Hi,
I'm about to write several Maven plugins to ease the life of the R&D people. I'm contemplating between writing the plugin in Groovy or in Java.
The plugin would most likely need to:
Use Git commands such as checkout, clone, etc.
Download pom.xml files of specific artifacts from a remote repository (our internal Nexus)
Parse the p...
What would be a way to find largest commits (i.e. commits introducing most changes, for instance counted as the number of added/removed lines) in a git repo?
Note that I really want largest commits, not largest files, so http://stackoverflow.com/questions/1286183/git-find-fat-commit is not helpful here.
...
I have installed msysgit, and I am attempting to use it inside of Hudson. Whenever I run a command in an interactive shell, whether it be git-bash or a command prompt, the commands are instant. When I run them in Hudson, they lag for a very long time.
Running /bin/git help took 63 seconds when I just invoked it. I've never waited long e...
I know how to list the remote branches
$ git branch -a
And I know how to find the head commit hash of my current branch
$ git rev-parse HEAD
But I'm not sure how to list all the head commit hashes for all the remote branches. This is close to what I want but what order are they in?
$ git rev-parse --remotes
4b9f7128e9e7fa7d72652b...
What's the git equivalent of the following svn workflow:
1) export foo
2) import bar
Is it the following?
1) checkout master
2) tag foo
3) branch bar
...
Hi,
I develop a lot of Zend Framework based applications with reusable modules (e.g. mailing module, cms module etc.)
Each project has it's own centralized repository and uses some of the common modules. Each time I update the module in one of the projects, it is very likely that I need to update the module in the other projects too.
...
I have a remote repository in a different directory structure than the master. A configuration file with pathnames on the master is tracked. When I pull from the master I'd like not to copy this file since the paths are different on the remote. But I'd like to also track the remote's configuration file on the remote.
Is there a good way...
I'm working with git locally, so I have many branches at a given time. Collaboratively, the project runs off a single subversion repository. When I need to update my local, the workflow is similar to the following:
git checkout master
svn update
git add .
git commit -am "updated from svn"
Now I may have several branches that are behin...
I have an existing Git repository on my local machine. I would like to move that repository to my web server, then git clone on my local machine to check out my repository from the server. I'm planning on then developing on my local machine and pushing updates back to the server. I can ssh from my local machine to the server, but not ...
1) I did git init in a folder
2) added some project files
3) I did git add * so it added recursively all files
4) I realised that I added a bunch of files I don't want to be versioned, so I wanted to undo the add
5) git reset gives me the following error:
fatal: Failed to resolve 'HEAD' as a valid ref.
6) git status still shows al...
I'm trying to mirror a perforce repository, and git-p4 performs well enough on the main branch. I simply have to call git-p4 rebase. I'm also trying to mirror a different branch, but that's not working out so easily. I thought I could just do a git-p4 rebase --branch=p4/whatever //open/branches/whatever but rebase appears to ignore those...
Ok, I am pretty new to git, probably this was asked and answered already. Probably I messed up things...
Now, there once was a branch master. I committed some funky stuff that didn't work too well.
Then I went back one revision, when everything was still well, and created an experimental branch and checked it out. I started working on ...
I'm converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the history in the correct order according the the file's "date modified" so I have an accurate history of the file?
I was told something like this would work:
git filter-branch --env-...
I got a ssh account running on a shared hosting server without root permission, after I installed the latest stable Git release via git-scm.com by "make install", the new command is successful install under my home directory which is ~/bin default automatically.
However, this new version of git seems only function with specify full path...
I want to be able to setup the following git workflow but it confusing as to which are the correct commands to use - rebase, remote, etc?
Clone an open source project where I only have read only access to their git repo
Make changes to the project and save those changes to my private github repo - lets call that 'development'
Once dev ...
First off, sorry if this is a duplicate, but I tried searching and all I could find was stuff on how to make branches in Git and whatnot. That's not what I'm looking for so much; I'm trying to figure out how different people out there setup their Git branches to match their workflow.
Let me give you an example of how our company does i...
Hi.
I have a problem with GIT repository.
On the remote machine:
git init test.git && cd test.git
git config core.bare false
git config receive.denycurrentbranch ignore
In .git/hooks I have push-update file:
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries ...
I currently have gitosis installed and configured on a server. It does exactly what it says on the tin, and does it well.
One of the repositories is a Rails application, an application which is ran in production mode inside a subdomain (lets call this staging.foo.com) before going live. The contents of this Rails application is located ...
Hi all,
I started working on my master branch thinking that my task would be easy. After a while I realised it would take more work and I want to do all this work in a new branch.
So how can I create a new branch and take all these changes with me without dirtying master?
Thanks
...
Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it?
For example, let fw.git be a framework repository, with these dirs:
|fw.git
\---|test
|code
|tools
I'd like to submodule the framework code, just the code directory, not other directories.
...