A git workflow to reset branch and commit correctly
February 21, 2024
git checkout feature
#add commits without worrying about neatness
git add ...
git commit -m ... # raw commit message
git add ...
git commit -m ... # raw commit messages
git reset origin/main ... or ... git reset develop
git status
# add commits and group logically
git add ...
git commit -m ... # neat commit message
git add ...
git commit -m ... # neat commit message