fatal: does not appear to be a git repository

前端 未结 8 1408
无人及你
无人及你 2020-12-02 10:58

Why am I getting this error when my git repository url is correct?

jitendra@JITENDRA-PC /c/mySite (master)
$ git push beanstalk master
fatal: \'git@skarp.bea         


        
相关标签:
8条回答
  • 2020-12-02 11:38

    I met a similar problem when I tried to store my existing repo in my Ubunt One account, I fixed it by the following steps:

    Step-1: create remote repo

    $ cd ~/Ubuntu\ One/
    $ mkdir <project-name>
    $ cd <project-name>
    $ mkdir .git
    $ cd .git
    $ git --bare init
    

    Step-2: add the remote

    $ git remote add origin /home/<linux-user-name>/Ubuntu\ One/<project-name>/.git
    

    Step-3: push the exising git reop to the remote

    $ git push -u origin --all
    
    0 讨论(0)
  • 2020-12-02 11:44

    This is typically because you have not set the origin alias on your Git repository.

    Try

    git remote add origin URL_TO_YOUR_REPO
    

    This will add an alias in your .git/config file for the remote clone/push/pull site URL. This URL can be found on your repository Overview page.

    0 讨论(0)
提交回复
热议问题