in Technology by

How can you fix a broken commit?

       A. git reset

       B. git commit –amend

       C. git fix

       D. git rebase

1 Answer

0 votes
by

How can you fix a broken commit?

       Ans : git commit –amend

Related questions

0 votes
    How can you temporarily switch to a different commit? A. git reset commitSHA B. git commit commitSHA C. git checkout commitSHA D. all the above options...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    How will you fix a Broken Commit?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    Which of the following creates new commit when you pull new changes from master to the feature branch? A. git rebase master B. git merge master C. git pull origin master...
asked Dec 20, 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
    Which command can you use to update remote refs with local refs? A. git push B. git fetch C. git pull D. git update...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    What is a good practice to follow when you want to backup a local branch? A. Push to remote repo B. Move to another PC C. Create another copy D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    Which command would you use to view the history of commits? A. git view history B. git show history C. git log D. git show commits...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitHub, ... those forks I pulled? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    When you run git fetch from my local repo, will it update your local code and target branch? A. Yes, the command ... new commits and keep them in a separate branch in local repo...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    When you run git fetch from your local repo, it will update your local changes in working area? A. True – ... It updates local repo only and does not affect the working area...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    Developer A has done some changes in the subproject and pushed it. Developer B can pull those changes using __________. ... submodule update C. git pull origin D. git submodule add...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    I do not want to retrieve the review's "state" ( e.g., 'open', 'closed' ) but rather ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
...