相关疑难解决方法(0)

从命令行向'git commit -m'添加换行符

我从命令行使用Git,并尝试在提交消息(使用git commit -m "")中添加换行符而不进入Vim.

这可能吗?

git bash shell

693
推荐指数
14
解决办法
24万
查看次数

Git/GitHub提交扩展消息/描述

我最近使用GitHub并下载了GitHub for Mac.

我注意到你可以使用GitHub for Mac添加"扩展描述".如何使用命令行添加扩展描述?

我可以在现有提交中添加扩展描述吗?

git macos github

64
推荐指数
3
解决办法
1万
查看次数

如何在源代码管理VScode中编写提交描述?

在 GitHub Desktop 中,我可以在提交的描述字段中写入不确定的行数,并且该字段与提交消息不同

在此输入图像描述

我知道我可以使用以下命令在 git bash 中执行相同的操作

git commit -m "Title" -m "Description ..........";
Run Code Online (Sandbox Code Playgroud)

现在我想知道我是否可以在源代码管理 VSCode 中执行相同的操作。
源代码管理选项卡中有一个字段,如下所示,但我不知道它是提交的标题(提交消息)还是描述:
在此输入图像描述

git visual-studio-code

9
推荐指数
1
解决办法
2725
查看次数

通过提交关闭Gitlab问题

我花了一天时间这样做:

  1. 阅读Gitlab驱动的问题跟踪器上的问题,
  2. 解决问题,
  3. 提交并推送到同一个Gitlab驱动的Git服务器,
  4. 将问题标记为已关闭.

要删除第4步,如何在提交时自动关闭问题?

gitlab

7
推荐指数
2
解决办法
3471
查看次数

通过Visual Studio代码提交的扩展消息?

我知道,使用命令行我可以这样做:

git commit -m "Title" -m "Description .........."
Run Code Online (Sandbox Code Playgroud)

有没有办法通过VS代码中的Git版本控制来做到这一点?

git visual-studio-code

2
推荐指数
2
解决办法
946
查看次数

How to separate title from body in a git commit message using Notepad++?

git在 Windows 上使用,当我使用commit command in the command prompt, my Notepad++ opens up and asks me to put in a commit message as follows:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
Run Code Online (Sandbox Code Playgroud)

This is great, but I want to be able to separate the message title from its body. When I …

git version-control commit notepad++ git-commit

0
推荐指数
1
解决办法
4221
查看次数