【问题标题】:Git bash - connection to the repository and last commit editionGit bash - 连接到存储库和最后提交版本
【发布时间】:2017-09-08 21:38:01
【问题描述】:

在 GitHub Desktop 程序的帮助下,我在 GitHub 上做了一个提交项目 https://zapodaj.net/394446cec1850.png.html, 但我忘了在提交描述中再添加一句话。我想编辑这个commita,但是我无法管理GitHub Desktop,所以我想使用git bash。但是,我不知道如何与存储库连接,制裁在地址C:\Users\Jonatan\Documents\GitHub\REST-Web-Services 上并且在git bush 中出错,因为它不在存储库https://zapodaj.net/30b69c3ce1606.png.html 中。

如何进入这个仓库以便使用命令?

git commit --amend

【问题讨论】:

  • cd 进入你的仓库所在的文件夹
  • cd C:\Users\Jonatan\Documents\GitHub\REST-Web-Services 会将您放入正确的文件夹中

标签: git bash github github-desktop


【解决方案1】:

既然你打开了一个 git bash,你应该使用 unix 风格的路径制作一个 cd:

cd /c/Users/Jonatan/Documents/GitHub/REST-Web-Services
git status
git commit --amend

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-05
    • 2013-11-06
    • 2017-07-12
    • 1970-01-01
    相关资源
    最近更新 更多