`

git 上传文件到仓库上提示:origin does not to be a git repository

git 
阅读更多

 错误:

  

     

$ git  push  origin  basics-email-dev
fatal: 'origin' 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.

 

  

  解决方案:

 

   重新输入一次:git remote add origin git@github.com:yourusername/test.git

 
   然后再输入:git push -u origin master 就可以提交了
 
分享到:
评论

相关推荐

    解决git:fatal:Unable to create”…/.git/index.lock” 的错误

    问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....

    OSError: Looks like you do not have git-lfs installed【没有root权限】

    LFS是Large File Storage的缩写,用了帮助git管理大的文件 ...对于git lfs来说,在使用git lfs track命令后,git push的时候,git lfs会截取要管理的大文件,并将其传至git lfs的服务器中,从而减小仓库的体积

    git上传文件类型限制

    git上传文件文件类型限制,如屏蔽一些依赖文件及生成文件上传

    Git常用的33个命令

    git reset [文件名]:将暂存区的文件取消暂存,或者切换到指定版本git reset --hard [版本号] git commit -m "描述信息" [文件名]:将暂存区的文件修改提交到版本库 git log:查看日志 远程仓库命令: git remote:...

    git常用命令.txt

    进入到上传的文件的目录下,使用命令初始化本地仓库git init 2:git add . 把本地文件添加到本地仓库暂存区,.的意思是把当前目录下所有的文件及子目录都添加管理,也可以把.换成相应的文件名 git add .或...

    如何远程上传自己的文件到github仓库:

    7、命令" git push -u 仓库名 master ":把本地仓库的文件上传到远程仓库。 8、如果你想验证YYY仓库是否添加,可以用命令" git remote -v "。 如果你想删除YYY仓库,可以用" git remote remove 仓库名

    Git指令的Shell脚本

    Git指令的Shell脚本,能够快速便捷地管理Git库,包括添加修改、提交修改、显示库状态、推送到远程库、从远程库更新到本地、版本恢复等操作。 使用方法: 1. 在Linux系统中,将本文件放在Git库目录下,利用Shell运行...

    GIT打包文件GIT打包文件

    GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件GIT打包文件

    iOS git 配置文件

    git上传大文件(git-lfs)以及忽略文件配置:.gitattributes .gitignore

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide epub

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    git命令整理的简单使用

    从远程仓库pull文件:git pull origin master 提交代码到暂存: git add . (提交暂存) 提交代码: git commit -m (注释什么操作) 推送到远程仓库:git push -u origin master (master 默认分支)

    C# .net的Git忽略文件整理

    C# .net的Git忽略文件整理

    git-vim, 用于Git的vim文件.zip

    git-vim, 用于Git的vim文件 git.vim简介git vim提供:在Vim中调用git函数的插件文件git显示的语法文件命令:gitadd <文件>如果没有指定,git添加 <文件> 或者当前文件。:gitcomm

    git-remote-origin-url:获取Git存储库的远程源URL

    git-remote-origin-url 获取Git存储库的远程源URL安装 $ npm install git-remote-origin-url用法 const gitRemoteOriginUrl = require ( 'git-remote-origin-url' ) ;( async ( ) => {console . log ( await ...

    git 修改上传文件编码为utf-8-bom

    当上传文件存在中文时,修改上传文件编码为utf-8-bom

    Git文件缓存分离组件Gitsym.zip

    (We recommend installing a git-sym-post-checkout-hook, in case the resources have not been cached already.)selective control of which large files to pull into the local storeLocal fat object stores ...

    Professional.Git.epub

    Professional Git takes a professional approach to learning this massively popular software development tool, and provides an up-to-date guide for new users. More than just a development manual, this ...

    常用的git命令完整详细109条

    3. git commit -m “备注”:提交暂存区的文件到Git仓库,并附上一条描述本次提交的备注信息。 4. git status 与 git diff:查看当前仓库的状态和文件差异。 5. git show commit_id 查看某次修改:显示指定提交的...

    Git 上传大文件

    mac本使用git上传大文件,内容详细,简单,易操作

Global site tag (gtag.js) - Google Analytics