I'm not sure I should post this question here but since the arrival of FileSystem on C3 web version, more people started using GIT with C3 so I think this question should make sense.
QUESTION 1
HOW CAN I MAKE ANY OLDER COMMIT AS A HEAD IN GIT? (SAME BRANCH)
I need to make a new commit out of an already committed commit. (just like we use "git checkout" command to check a specific commit, after that How to make a new commit out of that commit).
While digging through Stackoverflow I got this
git revert --no-commit 3466c05386c7009e7c91bccb03147e817074143..HEAD
which is having more than 2K upvotes but I got an error
Could you help me to crack this with some simple commands?
QUESTION 2
FORCE GIT TO PULL AND OVERWRITE THE LOCAL COMMIT (WHICH NOT PUSHED YET) FROM REMOTE? (SAME BRANCH)
Similar to
Where we force git to Push and overwrite the Remote, do we have any direct commands to do the opposite? Found many answers at Stackoverflow but not sure how to perform in a simpler way.