Let's say this is my class that was in my staged area while committing and pushing to the remote repository:
public class Money {
private int amount;
private String currencyCode;
public Money(int amount, String currencyCode) {
this.amount = amount;
this.currencyCode = currencyCode;
}
}
After that, I realized I didn't add getters and setters that should be included in this last commit.
Is there a way to change the last commit (add getters & setters) that has already been pushed to the remote repository ?
Or should I just add a new commit with some message indicating that this is a refinement of a previous commit ?