You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have this commits in my local and remote repository
A B C
and master points to c
i want to change master to B (or A) in my local and remote
after tried this commands:
git reset --hard
git push -f origin master
that commands change master to B but also delete c commit so i can't checkout to c in future. how can i do that without deleting any commit or history?
just change master's pointer to older commit id in local and remote
A B C
|
master
A B C
|
master
The text was updated successfully, but these errors were encountered:
i have this commits in my local and remote repository
A B C
and master points to c
i want to change master to B (or A) in my local and remote
after tried this commands:
git reset --hard
git push -f origin master
that commands change master to B but also delete c commit so i can't checkout to c in future. how can i do that without deleting any commit or history?
just change master's pointer to older commit id in local and remote
A B C
|
master
A B C
|
master
The text was updated successfully, but these errors were encountered: