V
V
Vika Marmeladka2020-12-10 11:38:52
git
Vika Marmeladka, 2020-12-10 11:38:52

How to push a SHA commit to git?

I moved to another commit in my branch (not the master) by SHA using the checkout command, changed everything as I need, now I want this particular commit to become the latest version, the current version of my branch, how can I do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-12-10
@Casufi

In this case git checkout -b new-branch-name git push your changes can be checked out to the new branch and made to work on. In general, read the official dock, it has a lot of scripts.

D
Denis Zagaevsky, 2020-12-10
@zagayevskiy

If I understood correctly, you want push --force

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question