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
What does the command Git reset –- soft HEAD^ perform?
Home
Git
What does the command Git reset –- soft HEAD^ perform?
0
votes
asked
Feb 13, 2022
in
Git
by
rajeshsharma
What does the command Git reset –- soft HEAD^ perform?
a) Moves commit to one after current head
b) Moves commit to one before current head
c) Moves commit to the first head
d) None of the options
git-reset
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 13, 2022
by
rajeshsharma
b) Moves commit to one before current head
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+1
vote
Q: What is the output of the command git reset -–soft HEAD ~5 ?
asked
Jul 26, 2019
in
Git Slack Integration
by
sheetalkhandelwal
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: How do you squash the last N commits into a single commit?
asked
Oct 16, 2019
in
Git
by
rajeshsharma
git-reset
git-commit
+1
vote
Q: What is the output of the command git reset –hard HEAD ~3?
asked
Jul 26, 2019
in
Git Slack Integration
by
sheetalkhandelwal
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: What is ‘git reset’ is used for? What is the default mode of this command?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-reset
#reset-git
0
votes
Q: Elucidate the main function of ‘Git reset’?
asked
Sep 3, 2020
in
Git
by
SakshiSharma
#git-reset
#reset-git
0
votes
Q: What is the difference between the head, working tree, and index in Git?
asked
Aug 24, 2023
in
Git
by
JackTerrance
git-interview-question-answers
0
votes
Q: What is ‘head’ in git and how many heads can be created in a repository?
asked
Mar 26, 2021
in
Git
by
rajeshsharma
git
git-repo
heads
0
votes
Q: What is head in git and how many heads can be generated in a repository?
asked
Sep 5, 2020
in
Git
by
SakshiSharma
#git-head
#git-repository
0
votes
Q: Shed light on the concept of ‘head’ in Git also state as to the number of heads that can be created in a single repository?
asked
Sep 3, 2020
in
Git
by
SakshiSharma
#git-head
head-git
0
votes
Q: What is the difference between HEAD, working tree and index, in Git?
asked
Feb 17, 2020
in
Git
by
SakshiSharma
#git-head
#git-index
...