git

How does git-svn behave with svn repositories that have changed layout?

This question is similar to this one and this one, but the scenario is slightly more complex. I started out a few years ago with a private svn repository (which I use mainly for shared config files and the like between various machines). I wasn't too careful with the layout of the repository (where branches, go, etc.), so it changed qui...

Capistrano and git checkout

Hi I am getting the following error when I do a cap deploy, which checks out of a git master repository: Could anyone please help me? Thanks in advance /var/lib/gems/1.8/gems/capistrano-2.5.8/lib/capistrano/configuration/servers.rb:78:in `role_list_from': unknown role `app' (ArgumentError) from /var/lib/gems/1.8/gems/capistrano-2...

Unable to `git submodule foreach git pull`

This question is based on this thread. My .gitmodules is at my Home [submodule "bin"] path = bin url = git://github.com/masi/bin.git My folder -structure at my Home: ~ |-- [drwxr-xr-x] bin // this is the folder which I make a submodule // it is also a folder where I have a...

How to configure term on Mac OS X with color?

I see some one demo git on Mac OS X on line. He can configure his Mac OS X terminal to have multiple color. for example, his prompt is 'wheat' color, his ls directory is purple color. And his 'git diff' output can have ~ 4 colors (pink, light green, red, pale yellow) Can you please tell me how can I configure Mac OS X terminal to achi...

How to show what a commit did?

A stupid way I know is: git diff commit-number1 commit-number2 any better way? I mean I want to know the commit1 itself, I don't want to add the commit2 before it as parameter. ...

Easy to use Git client for non-technical people?

My team consists of both software developers, business analysts, tech writers, and other non-technical people. We've started storing non-code artifacts (e.g. user manuals, technical documentation, reports, charts) in our Git repository. Our non-technical team members are having some trouble getting used to Git and its command line interf...

working with .git/info/exclude too late

I usually do this: git init git add . git commit . And then I realize that it's about to add my nbproject directory, which I want excluded/ignored. Sometimes, I even check in this directory. Had I added it to .git/info/exclude before running git add., everything works fine (it's excluded). So then I modify .git/info/exclude and then...

In git, how can I get the diff between all the commits that occured between two dates?

Or just all the commits that occurred between two dates? In SVN, you could do something like svn diff -r{date}:{date} to do it! I can't seem to find a git equivalent to this. Specifically I'm looking at writing a script to send out daily emails with all the code committed that day and by who. ...

In GIT: how to get SHA of the latest commit from outside the repository?

Does anyone know how to get the latest SHA of a given branch FROM OUTSIDE a git repository? If you are inside git repository, it’s you can do: git log origin/branch_X | head -1 However, I am not inside a git repository, and I would like to avoid having to “clone” a repository just to get the latest SHA of a tag/branch. Is there a cleve...

Git-svn refuses to create branch on svn repository error: "not in the same repository"

I am attempting to create a svn branch using git-svn. The repository was created with --stdlayout. Unfortunately it generates an error stating the "Source and dest appear not to be in the same repository". The error appears to be the result of it not including the username in the source url. $ git svn branch foo-as-bar -m "Attempt to...

Is it possible to use the same ssh private/public key pair on 2 machines to access a git repository?

I've recently setup an inhouse git repository server and have it up and running with gitosis installed as the management tool. Read only access is available via the git:// protocol and write access is available via gitosis using ssh public keys. I have a developer that has been granted access to his projects with a public key that was g...

'rm' + 'svn update' equivalent in Git?

Hi, In a svn working directory, I can make some changes in files in the working directory remove all the changes I made by 'rm all the source files in that directory, but keep my .svn directory) retrieve what the trunk supposed to by using 'svn update' and svn will download all the source back to my working directory. Is there an eq...

Modifying Git Diff files.

Will explain the problem that I'm faces, so that you have a better idea about the situation. We have one project, and about 6 months ago it was branched off. Lets call our branch A, and theirs branch B. In that time branch B has had 100,000 more lines of code added or deleted. We on the other hand have added or changed about 50,000 lin...

Porting GIT merging capabilities to SVN ?

I watched the YouTube presentation Tech Talk: Linus Torvalds on git a few weeks ago and one remark seems to be stuck in my mind. In this presentation (around minute 33) Linus says something along the line of "Some people clone a SVN repository, do merging (=headache in SVN) and then push the result back to SVN.". The thought that I ha...

why does git allow remote tags to move, or why you can't use git-tag for atomic test-and-set

I have a problem where two similar processes are running in parallel within separate clones of the same repository (typically on different computers). Each time a process runs, it fetches the latest tags from the remote and then deduces a unique number based on the tags it sees. E.g. if these tags exist on the remote: 1.0 1.1 1.2 1.3 th...

Can I checkout github wikis like a git repository?

I want to modify and view github wikis with local editor like Emacs, and Google Code wikis can be checked out just like code. Is there any way to checkout github wikis? Or is there any other git repository provider offers such feature? ...

Squashing or editing some commits before doing git-svn dcommit?

I am working on a project in a subversion repository with a strict check-in policy which includes: Every commit to the trunk has to be reviewed by another developer and this must be mentioned in the commit message. While working with git-svn I am making many incremental git check-ins that aren't reviewed. Their git commit messages refle...

Commiting specific parts of a file in Git

Hello, I have made several changes to a file and have also added it to the git index. While committing the file I realized that I actually have changes which should go in separate commits with other files. Is there a way to commit only specific parts of this file in Git? Thanks for your help. -- Parag ...

git, capistrano and windows please help

hi I am trying to deploy my app to my server using capistrano I am in a Git Bash and have commited everything and setup deloy.rb file and remote repo on Github. Now when i try and cap command even cap -h from Git bash i get error : sh.exe": cap: command not found I am in the correct dir. It seems Git Bash is not linked to capistran...

Git, can I use it instead of sourcesafe or subversion?

Can Git be used the same as sourcesafe, Can I implement it directly into visual studio to check-in/out code and see history? Thanks guys. ...