in Technology by

What is the command to amend an incorrect commit message?

       A. Git does not have an option to amend messages

       B. Git commit –amend -m “correct message”

       C. Git correct message

       D. Git amend -m “Correct message”

1 Answer

0 votes
by

What is the command to amend an incorrect commit message?

      Ans : Git commit –amend -m “correct message”

Related questions

0 votes
    What is the command to pick a commit from a specific branch and move it to another branch? A. Git move commit B. Git cherry-pick C. Git move branch D. None of the options...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    git bisect is used to identify a commit that has introduced a bug. A. True B. False...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    I have made a commit and discarded it. I can still retrieve that commit using git reflog. A. True B. False...
asked Dec 24, 2022 in Education by JackTerrance
0 votes
    Which command helps you track the revisions of your revisions in Git? A. Git reflog B. Git logref C. Git track D. Git revision trak...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    git reflog tracks the commits that are made and the commits that are discarded. A. True B. False...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    git reflog –verbose will print extra information on the screen. A. True B. False...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    What is the GIT command you can use to write a commit message?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What is the Git command to move branch pointer to different commit without checkout? A. Git cherrypick B. Git update-ref C. Git reset head...
asked Dec 24, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to skip staging and commit the changes directly? A. git skip stage B. git commit C. git commit -a -m “message” D. git add changes...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to view all the changes since the last commit ? A. git clean B. git status C. git changes D. git commit...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What is the command to reset your index as well as the working directory to the state of your last commit? A. git clean B. git reset C. git revert D. git checkout...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to blow away all the changes in a file in the working area, since the previous commit? A. ... git log filename C. git checkout filename D. git rm filename...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    Can you tell how in Subversion, how the command commit can be put separated from the command update?...
asked Feb 18, 2021 in Technology by JackTerrance
0 votes
    Which of the following command is used to give a message description? (a) git command -m (b) git ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    Which of the following command help us to give message description? (a) git command -m (b) git command ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
...