git

How to migrate from SVN to GIT Locally

I'm working on a project that initially used Subversion, but the remote repository was removed and i don't want to use Subversion any more. I want to migrate it to git. There's a way to do it without the remote repository, keeping all revisions history (without doing a git init .)? I've already made a subversion to git migration with ...

Accidentally committed dev database to Git

I accidentally committed my development.sqlite3 file to Git, and it seems to be slowing down my commits. I know about .gitignore, but does this take the file out of my repository once I've done so? My concern is is with reducing the commit and push times. ...

Git: How to remove file from index without deleting files from any repository

When you use git rm --cached myfile it doesn't delete from the local filesystem, which is the goal. But if you've already versioned and committed the file, pushed it to a central repository, and pulled it into yet another repository before using the command, it will delete the file from that system. Is there a way to just remove the ...

GIT summary of changes since initialising repository

Just out of curiosity I want to see the total amounts of insertions, deletions and other modifications on my GIT repository since it was first created. Similar to git log --stat but for all commits. Anyone know how to do this? ...

Consistent tagging across multiple projects in separate Git repositories

I'm working on a product which relies on several different projects each hosted in its own Git repository. When a release is made, it would be ideal for us to consistently tag every project that is involved in building the product - this includes the core code, libraries and build tools. Is there an obvious and sensible way to tag all ...

Dumb git gui question (Windows)

I have a ton of new files to commit. Clicking each one to stage is annoying. How can I can I commit a whole bunch of files at once? ...

How to do simultaneous builds in two Git branches?

I've looked at git-new-workdir, but I don't want the history to be shared because the branches have a release-main relationship. That is, changes in the release branch I want to propagate to the main line, but changes in the main line I don't want in the release line. A common pattern for me is to fix a bug in the release line, integra...

How do I list everyone who has ever committed to a file in Git?

I want to get a complete list of everyone who has ever committed to a file, is there a command (blame with some arguments, maybe) do that nicely? Thanks ...

What makes merging in DVCS easy?

I read at Joel on Software: With distributed version control, the distributed part is actually not the most interesting part. The interesting part is that these systems think in terms of changes, not in terms of versions. and at HgInit: When we have to merge, Subversion tries to look at both revisions—my modifi...

Does deleting a branch in git remove it from the history?

Coming from svn, just starting to become familiar with git. When a branch is deleted in git, is it removed from the history? In svn, you can easily recover a branch by reverting the delete operation (reverse merge). Like all deletes in svn, the branch is never really deleted, it's just removed from the current tree. If the branch is ...

Getting a list of all children of a given commit

I'd like to run git filter-branch on all children of a given commit. This doesn't seem to be an easy task, since there doesn't appear to be a way to tell git rev-list to only return children of a particular commit. Using the .. syntax won't work because it will also include the parent commits of any merge within that range. Am I missi...

Strange git case - git stash followed by git stash apply lost uncommitted data?

I have a file, let's say file.txt I have done git mv file.txt to file1.txt, then I created a new file called file.txt and worked on it. Unfortunately I didn't add that file to git yet. Anyway the problem is that I did git stash, then git stash apply, but the new file.txt disappeared... anyway to get it back? ...

How do you pass a file list to the linux zip command

I'm using Git for version control and unlike SVN I have not come across an inherent means of performing an export of changed files between 2 revisions, branches or tags. As an alternative I want to use the linux zip command and pass it a set of file names, however the file names are the result of another command git diff. Below is an ex...

Is there a quick way to see if a commit hash is in a particular tree's history?

Can I compare a commit to a branch and see if there is a diff, or just get a yes / no answer to the question somehow? ...

How do I fix these spurious git commits?

I made an error when I was working and wound up with a commit tree I didn't want. Right now, things look like this: [master] A -- B -- C -- D \ \ C' -- D' [HEAD] I want to wind up like this: [master, HEAD] A -- B -- C -- D How...

How to use Git properly with XCode?

I have been an iphone developer for a while, and I have recently been including git in my workflow. I have used git settings found on http://shanesbrain.net/2008/7/9/using-xcode-with-git for my workflow so far. Those settings tell git to exclude *.pbxproj from merges? Is there a real reason for doing this? For example, when I add a f...

git push merge error, but git pull is already up-to-date. Tried reclone, same problem.

I do: $ git commit . $ git push error: Entry 'file.php' not uptodate. Cannot merge. Then I do $ git pull Already up-to-date. What do I do? I just want to get the latest version from the remote copy, and overwrite anything on my local copy. Edit: I tried everything. I deleted my local repo, and $ git clone ssh://[email protected]...

git gui app to show detected renames

Hi. Is there a git gui app (for commiting) that shows detected renames? Git-gui currently shows me a lot of deleted and new files instead of renames. TortoiseGit does not work at all on my system. Intellij's Git somehow does not detect any modifications to commit. TIA. ...

How can I remove my last commit in my local git repository

Hi, This is the output of my 'git log'. But when I do a 'git pull' , the top commit causes conflict. So I did a 'git rebase -abort' commit 7826b25db424b95bae9105027edb7dcbf94d6e65 commit 5d1970105e8fd2c7b30c232661b93f1bcd00bc96 But my question is Can I 'save' my commit to a patch and then do a git pull? Just like I want to emulate...

Git push origin master

I am new to git and recently set up a new account with github. I'm following a rails tutorial from Michael Hartl online ( http://www.railstutorial.org/book#fig:github_first_page ) and followed his instructions to set up my git which were also inline with the setup instructions at github. Anyways, the "Next Steps" section on github were: ...