zoukankan      html  css  js  c++  java
  • 版本控制工具 Git SourceTree 报错 fatal: could not read Username for 'https://gitee.com': No such file or directory

    就点了一下 Git工作流-完成功能 就报错了

    错误如下

    git flow feature finish -k oms
    bash: /dev/tty: No such device or address
    error: failed to execute prompt script (exit code 1)
    fatal: could not read Username for 'https://gitee.com': No such file or directory
    Fatal: Could not fetch feature/oms from origin.
    完成时带有错误,见上文。
    

    解决,在命令行模式中,执行一下命令,然后在弹出框中输入用户名和密码,后面还有写备注,然后就保存就可以了

    编辑命令:i
    退出编辑界面:Esc按键
    保存的命令::wq
    命令:git flow feature finish -k oms

    遇到的报错如下

    
    
    git flow feature finish -k oms
    bash: /dev/tty: No such device or address
    error: failed to execute prompt script (exit code 1)
    fatal: could not read Username for 'https://gitee.com': No such file or directory
    Fatal: Could not fetch feature/oms from origin.
    完成时带有错误,见上文。
    
    
    E325: 注意
    发现交换文件 "/d/java/projects/ecyun2/.git/.MERGE_MSG.swp"
                所有者: Administrator    日期: 周五 十一月 06 14:18:57 2020
                文件名: /d/java/projects/ecyun2/.git/MERGE_MSG
                修改过: 是
                用户名: Administrator      主机名: YangZhiNongPC
               进程 ID: 1371
    正在打开文件 "/d/java/projects/ecyun2/.git/MERGE_MSG"
                  日期: 周五 十一月 06 14:36:22 2020
          比交换文件新!
    
    (1) Another program may be editing the same file.  If this is the case,
        be careful not to end up with two different instances of the same
        file when making changes.  Quit, or continue with caution.
    (2) An edit session for this file crashed.
        如果是这样,请用 ":recover" 或 "vim -r /d/java/projects/ecyun2/.git/MERGE_MS
    G"
        恢复修改的内容 (请见 ":help recovery")。
        如果你已经进行了恢复,请删除交换文件 "/d/java/projects/ecyun2/.git/.MERGE_MS
    G.swp"
        以避免再看到此消息。
    
    
    
    
    
    Administrator@YangZhiNongPC MINGW32 /d/java/projects/ecyun2 (feature/oms)
    $ git flow feature finish -k oms
    Switched to branch 'develop'
    Your branch is up to date with 'origin/develop'.
    hint: Waiting for your editor to close the file... error: There was a problem with the editor 'vi'.
    Not committing merge; use 'git commit' to complete the merge.
    
    There were merge conflicts. To resolve the merge conflict manually, use:
        git mergetool
        git commit
    
    You can then complete the finish by running it again:
        git flow feature finish oms
    
    
    
    
    
    Merge branch 'feature/oms' into develop
    # Please enter a commit message to explain why this merge is necessary,
    # especially if it merges an updated upstream into a topic branch.
    #
    # Lines starting with '#' will be ignored, and an empty message aborts
    # the commit.
    
    
    
    
    :wq
    
  • 相关阅读:
    从零开始学VUE3.X-常用模版语法
    从零开始学3.X-生命周期函数
    从零开始学TypeScript-readonly
    从零开始学Typescript-基础类型
    从零开始学Typescript-webpack打包
    探索 .NET Core 依赖注入的 IServiceProvider
    在.NET Core 中使用 FluentValidation 进行规则验证
    盘点大厂的那些开源项目
    探索 .NET Core 依赖注入的 IServiceCollection
    使用 Benchmark.NET 测试代码性能
  • 原文地址:https://www.cnblogs.com/guxingy/p/13936620.html
Copyright © 2011-2022 走看看