Skip to content

[Bug]: Not using git add . #4

Open

Description

@CBID2

Description

The Git flow workfile lists git add . as the command to stage commits. While true, the command developers are encouraged to use is git add file-nameso that the files they are not working on won’t be added to the staged commit(s).

Solution

Replace the command with the alternative mentioned above

Activity

  1. pradeepsgouds commented on Apr 21, 2025

    @pradeepsgouds

    It's very helpful that you pointed out the inclusion of git add . in the workflow documentation.

    As you have rightly mentioned, using git add file-name is more accurate, particularly in collaborative projects, as staging unrelated changes can introduce bugs or confusion in subsequent commits.

    This consideration requires developers to be more deliberate and thoughtful, which is important for clean versioning and collaboration with others.

    Thank you for proposing the fix. I appreciate it and it looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions