查看: 89|回复: 0

版本控制工具 Git SourceTree 报错 fatal: could not read Username for 'https://gitee.com': No such file or directory

[复制链接]

3

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2012-2-22
发表于 2020-11-6 14:13:00 | 显示全部楼层 |阅读模式

就点了一下 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


来源:https://www.cnblogs.com/guxingy/p/13936620.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部