Setting up Git Locally for use with Intellij Idea 12

I’ve been at this all night but can’t seem to get anything working.

Here’s what I want to do:

  • make Git repository global writable
  • Access file from gitolite-hosted git repository directly using http client
  • What is a good workflow for submodule forks
  • How to get msysgit to clone a repository where I want it to go?
  • A Gerrit Instance that Can Rebase Projects to Google AOSP?
  • Git push/pull paths not working to windows origin running msysgit + cygwin sshd
  • I have a project in IntelliJ Idea 12 that I want to use with Git. I want to use git locally for my personal use.

    I have installed git and set it as my VCS in IntelliJ. However, I can’t actually push anything because Intellij says that there is no remote set. In git bash, I set up a ‘remote’ folder elsewhere and called the folder ‘Project.git’.

    Then I navigate back to my intelliJ project and used the command:

    git remote add origin C:\Users\Me\RemoteFolder.git

    No errors.

    Then I push and get the following error:

    fatal: 'C:UsersMeRemoteFolder.git' does not appear to be a git repository
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.

    Can someone tell me what’s wrong? Or just give me a simple guide for setting up Git locally with Intellij? I have tried their documentation and about 100 google searches and cannot ever seem to find the answers to my questions.

    Any help is appreciated.

  • How to prevent QtCreator from managing Git
  • Git Autocompletion looks weird (and only half-functional)
  • How to get back a clean git repository?
  • When I run 'bundle update' and I have git references, where are those git repositories saved?
  • Phpstorm Git file colors
  • missing commits after git rebase
  • One Solution collect form web for “Setting up Git Locally for use with Intellij Idea 12”

    First, you need to create a bare repo (git init --bare C:\Users\Me\RemoteFolder.git) in order to push to it.

    Second, you need to declare that remote taking into account the fact that backslash (\) are not well supported. This should work better:

    git remote add /C/Users/Me/RemoteFolder.git
    # or even
    git remote add C:/Users/Me/RemoteFolder.git
    Git Baby is a git and github fan, let's start git clone.