Importing a GitHub project into Eclipse

As mentioned in Alain Beauvois‘s answer, and now (Q4 2013) better explained in Eclipse for GitHub EGit 3.x manual (section “Starting from existing Git Repositories”) Eclipse with GitHub EGit tutorial Copy the URL from GitHub and select in Eclipse from the menu the If the Git repo isn’t cloned yet: In> order to checkout a remote project, … Read more

key_load_public: invalid format

As Roland mentioned in their answer, it’s a warning that the ssh-agent doesn’t understand the format of the public key and even then, the public key will not be used locally. However, I can also elaborate and answer why the warning is there. It simply boils down to the fact that the PuTTY Key Generator generates two different public key formats depending on … Read more

git replace local version with remote version

This is the safest solution: Now you can do whatever you want without fear of conflicts. For instance: If you want to include the remote changes in the master branch you can do: This will make you branch “master” to point to “origin/master”.

Change the location of the ~ directory in a Windows install of Git Bash

I don’t understand, why you don’t want to set the $HOME environment variable since that solves exactly what you’re asking for. cd ~ doesn’t mean change to the root directory, but change to the user’s home directory, which is set by the $HOME environment variable. Quick’n’dirty solution Edit C:\Program Files (x86)\Git\etc\profile and set $HOME variable … Read more