Skip to content

[git-exec] ステージングに入れるファイルをもうちょっと工夫したい #2

@himanoa

Description

@himanoa

現状

$ git add .

問題点

git execした時にステージングに入ってなかったファイルまでコミットされてしまう

改善案

  • コマンド実行前にgit diffしておいて、コマンド実行後のgit diffと比較して追加された差分だけステージングに入れるとか?
  • ステージングに既にファイルが入ってる場合にgit execできないようにする

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions