I started using git when I was studying for small projects and then the workflow was git add file
when having made a new file and then git commit -m ...
for subsequent changes.
Now I'm in a new professional larger project where we use git flow
. we didn't have any actual problems with git but I wonder why I must make git add
now every time I make changes. Is it because I always make a new branch for just myself when we use git flow
and therefore I must add the files to an initially empty branch?
Can you please let me know how I can get more skilled at using git flow
?
git add
even with plain git to stage files for commit. It's just that if you explicitly list what you want to commit withgit commit
, it does staging for you. But if you don't specify list of files to commit, thengit commit
only commits files you staged withgit add
.git
activity on every save in your editor; you want togit
only on meaningful steps