We use Eclipse with Git and we have issues when committing before pulling
Currently we don't use pull request, but direct pushes to the main/master branch. and failing to (commit and) push because of old commits not pull causes difficulty to merge commits later.
Can we ensure/prevent commit(/push) before pulling latest commit(s)?
i.e. can we execute in atomic operation pull and commit (and maybe push) instead of just commit?
Or alternatively can we do a automatic rebase before push?