I need to change a file that i have already pushed but i don't want to do a new commit, so i tried amend. But when I try to push the changes to the remote branch it gives me an error. Do I need to do a force push or something else ?? I'm the only one working on this project so no one is going to pull this branch(I can use amend).
Thanks.