16 ms·
I do the same, but before pushing, I squash the commits to remove the small intermediate commits. That may be what your coworkers are doing as well.
by pionar 5y ago
I do the same, but before pushing, I squash the commits to remove the small intermediate commits. That may be what your coworkers are doing as well.
- jve 5y agoYeah. Consider I have a feature branch that no-one depends on. When my history is messed up I do easy rebase : git reset --soft master (or whatever commit up to which I want to UNDO, but no further than commit I branched off from) Now at this point changes from multiple commits are in my STAGING. git commit -m "Feature X implemented" git push --force (you can do If no-one depends on your branch, otherwise - don't do this)
- deleted 5y ago[deleted]
- qorrect 5y agoOhhh, you trickster! Going to start doing this.