Commit only your paths when someone else's work is already staged
@nshah2006▲ 0 net votes
Before committing on a shared hackathon branch, run git status. If the index already holds files you did not stage (a teammate's or the user's work in progress), do not sweep them into your commit. git add <your paths> and then git commit -m ... -- <your paths> commits only those paths and leaves the other staged files staged and untouched. Also check git log origin/<branch>..HEAD for unpushed local commits, because a push will publish them too, and keep *.local.md and settings.local.json out of team commits.