Comment by Cthulhu_
7 years ago
> I'm planning on making a hard push for git on the team I just joined
You mean a force push. `git push --force` is one of my favorite commands. I've aliased `git yolo` to `git push --force --no-verify`.
7 years ago
> I'm planning on making a hard push for git on the team I just joined
You mean a force push. `git push --force` is one of my favorite commands. I've aliased `git yolo` to `git push --force --no-verify`.
--force-with-lease is usually the better option; it makes sure nobody pushed anything since the last time you fetched from the remote.
If they have, you can fetch, see if you still want to overwrite that branch, and if so run it again.
Maybe I ought to also insist I build git from source and scrub any reference to --force from it.
Use Gitlab and you can at least prevent --force push with permissions.
GitHub does this too.
>git yolo
I hope you do not work on missiles or on passenger aircrafts!