Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can you temporarily switch to a different commit?
Home
Git
How can you temporarily switch to a different commit?
0
votes
asked
Oct 26, 2020
in
Git
by
AdilsonLima
How can you temporarily switch to a different commit?
(1)git reset commitSHA
(2)all the above options
(3)git commit commitSHA
(4)git checkout commitSHA
Answer:-(4)git checkout commitSHA
#git
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 26, 2020
by
AdilsonLima
Correct answer is
git checkout commitSHA
Related questions
+1
vote
Q: If you want to see the changes since last commit in a specific file, what command should you use?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
+2
votes
Q: After performing several commits, or cloning a repository with an existing commit history, if you want to look back to see what has happened, what command will you use?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: Which of the following creates new commit when you pull new changes from master to the feature branch?
asked
Oct 26, 2020
in
Git
by
AdilsonLima
#git
0
votes
Q: What is the Git command to blow away all the changes in a file in the working area, since the previous commit?
asked
Oct 26, 2020
in
Git
by
AdilsonLima
#git
0
votes
Q: What is the command to write a commit message in Git?
asked
Aug 16, 2020
in
Git
by
RShastri
#git
+1
vote
Q: Is It a good practice to use present tense in commit messages?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: Which Git command is use to view all the changes since the last commit?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
0
votes
Q: Which Git command to skip staging and commit the changes directly?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
+1
vote
Q: What is the GIT command to see all changes since the last commit ?
asked
Jul 25, 2019
in
Git
by
Robindeniel
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
+1
vote
Q: What is the GIT command to skip staging and directly commit the changes directly ?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
...