Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Ask a Question
What does the command Git reset –- soft HEAD^ perform?
Home
Git
What does the command Git reset –- soft HEAD^ perform?
asked
Feb 13, 2022
in
Git
by
rajeshsharma
Q:
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
1
Answer
0
votes
answered
Feb 13, 2022
by
rajeshsharma
b) Moves commit to one before current head
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 ‘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
0
votes
Q: Tell me the difference between HEAD, working tree and index, in Git.
asked
Oct 16, 2019
in
Git
by
rajeshsharma
git-head
git-working-tree
git-index
+1
vote
Q: What does the following command perform?
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: What is the command to reset your index as well as the working directory to the state of your last commit?
asked
Feb 13, 2022
in
Git
by
rajeshsharma
git-state
git-commit
0
votes
Q: What does the command git checkout -b branchname do?
asked
Feb 13, 2022
in
Git
by
rajeshsharma
git-checkout
0
votes
Q: What does the command git add . do?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
#gitadd
+1
vote
Q: What does the GIT command 'git remote prune origin' do?
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
+1
vote
Q: What does the command git checkout branchname do?
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
+1
vote
Q: What does the command git add. do?
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: What is the difference between ‘HEAD’, ‘working tree’ and ‘index’?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-index
#git-head
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
...