【问题标题】:git commit the wrong filename first letter uppercase [duplicate]git提交错误的文件名首字母大写[重复]
【发布时间】:2014-09-07 22:08:25
【问题描述】:

git 没有提交正确的文件名首字母大写。在我的工作区,我有一个User.js,但是在git状态中,它显示的是user.js,而且无论我更改和提交User.js多少次,git仍然将其视为user.js并推送到服务器 由于文件名不正确,应用程序未执行的位置。如何将 git 中的 user.js 更改为 User.js 以匹配我的工作文件名?

【问题讨论】:

  • 您使用的是 Windows 系统吗?
  • @Daniel 我在 mac 系统上。

标签: javascript node.js git


【解决方案1】:

你必须使用 git 来重命名它,否则它不会知道:

git mv user.js User.js

http://git-scm.com/docs/git-mv

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-24
    • 1970-01-01
    • 2021-01-15
    • 2012-12-23
    • 2011-12-26
    • 2019-02-02
    • 1970-01-01
    相关资源
    最近更新 更多