Well done!
You have completed Key Concepts in Software Development: Version Control, Git, and I/O Operations Quiz!
Quiz Question 1 of 5
In the context of Git, what is the significance of the command git push --force
, and when might it be necessary to use it?
Choose the correct answer below:
-
A
It merges the local and remote repository changes without resolving conflicts
-
B
It is used to revert the repository to a previous state, removing all recent changes
-
C
It forces the local repository changes to overwrite the remote repository, potentially causing loss of data in the remote repository
-
D
It is used to create a new branch and push it to the remote repository