git

What are the differences between these git diff commands?

What are the differences between the following git commands? git diff HEAD git diff HEAD^ git diff --cached or the synonym git diff --staged git diff ...

Simple Git Branch Switching Workflow

I am working on a project using Git. Now, I am working on a feature in a branch and ran across something that I need to see some code from someone else's branch to remind myself how a function he wrote works (these two branches will get merged when I am done). I do not really want to commit my changes right now and git checkout his bra...

GIT CRLF to LF - git parent repo on UNIX and clones on both windows and unix.

This question is somewhat similar to my other question, http://stackoverflow.com/questions/3455772/make-sure-files-are-converted-crlf-into-lf-in-an-update-hook-is-there-a-performa So here is what am looking for with the below architecture. 1. MY parent repository (bare and data) is on a UNIX machine. 2. I can clone my repository in a UN...

Create new Git repo at GitHub through restful API?

Is it possible to create a new Git Repo at GitHub through restful API and not manually through their site? ...

Git vs SVN - Network Performance (for backup)

Which is better suited for transferring large files with frequent updates over limited bandwidth? I Haven't been able to find any comparisons out there. UPDATE To not preclude other solutions, is something better suited to sending deltas to large files? (Have tried Unison) ...

error: git checkout-index: unable to create file

What I am trying to do is a git clone on windows, but the parent repository exists in a unix machine. Am cloning using ssh to get a clone from UNIX to windows, and I get this weird error. error: git checkout-index: unable to create file <filename> This happens during the checkout step of a git clone. Can anyone help me? ...

How to make git automatically load previous comment in editor on commit?

When I do a git commit on the command line, the associated editor pops up with a template that enables me to type in the commit message. This is all well and good. However, I wonder if it's possible to instead have that template loaded up with the last commit message, so that I can use that as a basis for my current commit message. The ...

Difference between HEAD / Working Tree / Index in Git

Hello, Can someone tell me difference between HEAD / Working Tree / Index in Git? From what I understand, they are all names for different branches. Is my assumption correct? EDIT: I found this "A single git repository can track an arbitrary number of branches, but your working tree is associated with just one of them (the "current" o...

Rewriting Git History: How do I remove a sign-off?

When rewriting a Git repository's history, how do you remove sign-offs (as created by git commit -s or git commit --signoff)? git filter-branch's commit-filter seems to only support the variables used by git commit-tree: GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE EMAIL ...

Egit "*" symbol?

Hiho, I'm using the egit plugin for eclipse. What does this Symbol "*" mean over the icon of a file? The file is committed but with "git status" the file is marked with "changes to be commited" but with "git diff" happens nothing:/ Here's a screenshot: http://imgur.com/hUyQN.png greetings ...

Egit staged after commit?!

Hello, I'm using egit for eclipse since today but there is a problem. I commited a file(works perfectly), but after the commit the file is staged to commit again? and with "git status" the file is listed "Changes to be committed:" But without any changes "git diff" has no output. What's the matter? commiting in command line seems to ...

Suppressing diffs for deleted files in git

Hi all, I want to get a quick overview of the local changes in my repository, but I don't want a diff that shows deleted files, since every single line is a minus. Basically, I want something like 'git diff HEAD <list of modified files only>'. In an ideal world, it would be preceded by the list of deleted and added files, but not show ...

Add a folder in $LOAD_PATH and require all libraries automatically?

How do I tell Ruby to add a path in $LOAD_PATH and require all libraries automatically every time the interpreter fires up? That is to say, I don't want to load my libraries manually. Eg: cd /my_libraries git clone <git_repo_to_thor_gem> Then I want ruby to use that one instead of the gem I installed because I want to change the sou...

Recommendations for version control software

In my day job, we use Visual Source Safe for version control. In my moonlight software development, I haven't as yet committed to a version control product. I'm presently backing up at the end of each day to a couple of external drives. This is obviously just a half-baked disaster recovery effort, not version control. I don't have ton...

Undo a git push on github

Hi all, I made a mistake .... and I don't know how to fix it. I explain the issue. I was working on my project, and I did a first commit. In this commit 2 big useless files had been added... I didn't wanted these files so I did a git rm file Then commited again. And I'm stupid, because I pulled over github hehehe :). I think you...

Splitting the first commit in git

I want to split the first commit in my git repository, but I cannot use rebase to do this because a parent node is required. I found http://stackoverflow.com/questions/2119480/changing-the-message-of-the-first-commit-git useful for modifying the first commit, but not splitting it. How can I split it? ...

How can I make git-pull verbose by default?

Looking through the git-config variables and git-pull documentation I don't see a way to make git-pull pull verbose by default. Anybody know of a way? ...

What are currently the problems with Git on Windows

I wanted to download msysgit here, and it says this: "here are not enough contributors to the msysGit project to offer commercial-grade support; if you do not have the means to fix your problems (possibly with valuable advice from the msysGit mailing list), or to entice people who can fix them, it is unlikely that your problem gets solve...

Git: How do you commit code as a different user?

I want to be able to do this for a script. I'm essentially re-creating the entire version history of some code in git - it currently uses a different version control system. I need the script to be able to add in the commits to git while preserving the commit's original author (and date). Assuming I know the commit author and the date/t...

rails log issue

how do i fix this issue and get it to stop happening CONFLICT (delete/modify): log/development.log deleted in eccc398bb3058c5c0cc9e3587aae93289597fc0f and modified in HEAD. Version HEAD of log/development.log left in tree. I have it in .gitignore ...