You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
Description
The Git flow workfile lists
git add .
as the command to stage commits. While true, the command developers are encouraged to use isgit add file-name
so 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
The text was updated successfully, but these errors were encountered: