Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate reset and force push of a forgotten commit #11

Open
teobais opened this issue Jul 26, 2019 · 1 comment
Open

Automate reset and force push of a forgotten commit #11

teobais opened this issue Jul 26, 2019 · 1 comment

Comments

@teobais
Copy link
Owner

teobais commented Jul 26, 2019

Yes, it happened more than twice to neglect a file during a commit, reset the HEAD, readding the files and force a push.

Thus, we should automate the following process:

git reset HEAD~1
last git add command
last git commit command
git push -f
@teobais
Copy link
Owner Author

teobais commented Aug 10, 2019

Consult this blog on how to repeat the last git add and commit commands. Thanks to @c-guntur, of course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant