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

GitHub – fatal: could not read Username for ‘https://github.com’: No such file or directory

Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys OR git remote add origin https://{username}:{password}@github.com/{username}/project.git Update: If you get “fatal: remote origin already exists.” then you have to use set-url: git remote set-url origin https://{username}:{password}@github.com/{username}/project.git

How do I avoid typing “git” at the begining of every Git command?

You might want to try gitsh. From their readme: The gitsh program is an interactive shell for git. From within gitsh you can issue any git command, even using your local aliases and configuration. Git commands tend to come in groups. Avoid typing git over and over and over by running them in a dedicated … Read more