Question about GIT

0 favourites
  • 1 posts
From the Asset Store
Logo Quiz with 150 prepared logos and answers, automatic question and answer mixing
  • 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

    git push -f
    

    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.

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)