Skip to content

Conversation

@hughlilly
Copy link
Contributor

@hughlilly hughlilly commented Sep 23, 2022

(This PR should be archived or deleted: it contains an extra commit, and I couldn’t work out how to revert it. #556 supersedes it.)

Opens GitHub notifcations page instead of Gitify repo (which can be opened by clicking the app's icon)
@hughlilly hughlilly closed this Sep 23, 2022
@JakeSidSmith
Copy link
Contributor

For future reference, if you want to remove a commit, or adjust the last few commits I generally do:

git reset <commit-hash>

This will go back to the state of the commit that's hash you provide, with any changes you've made since then un-staged.

You can then discard any changes you didn't want to include and create your commits as usual.

To push to the remote you then use:

git push --force-with-lease

Force with lease allows you to overwrite what's on the remote, but won't overwrite anything that has been pushed by others (just to prevent undoing someone else's work in case they're working on the same branch).

@JakeSidSmith
Copy link
Contributor

Note: force pushes are dangerous, so make sure you're on the right branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants