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 to delete unpublished Git commits and get rid of them permanently?
Home
Git
How to delete unpublished Git commits and get rid of them permanently?
0
votes
asked
Feb 13, 2022
in
Git
by
rajeshsharma
How to delete unpublished Git commits and get rid of them permanently?
a) git reset –hard
b) git revert
c) git reset –soft
git-commit
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 13, 2022
by
rajeshsharma
a) git reset –hard is used
to delete unpublished Git commits and get rid of them permanently
Related questions
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
0
votes
Q: In Git, how would you return a commit that has just been pushed and made open?
asked
Oct 16, 2019
in
Git
by
rajeshsharma
git-commit
git-revert
+1
vote
Q: In Git how do you revert a commit that has already been pushed and made public?
asked
Oct 15, 2019
in
Git
by
rajeshsharma
git-commit
git-revert
0
votes
Q: How do I undo 'git add' before commit?
asked
Jan 9, 2021
in
Git
by
SakshiSharma
git
version-control
git-commit
git-stage
+1
vote
Q: What is ‘bare repository’ in Git?
asked
Feb 7, 2021
in
Git
by
SakshiSharma
bare-repository
#what-is-git
git
github
github-administration
github-repository
github-repo
github-version-control-system
git-version
git-branch
git-commit
0
votes
Q: Mention the various Git repository hosting functions.
asked
Feb 7, 2021
in
Git
by
SakshiSharma
#git-repository-functions
#what-is-git
git
github
github-administration
github-repository
github-repo
github-version-control-system
git-version
git-branch
git-commit
0
votes
Q: What is git is-tree?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-is-tree
#git-tree
#is-tree
#what-is-git
git
github
github-administration
github-repository
github-repo
github-version-control-system
git-version
git-branch
git-commit
0
votes
Q: What is a commit message in GIT?
asked
Oct 15, 2019
in
Git
by
rajeshsharma
commit-message
git-commit
commit-git
0
votes
Q: How do you manage set of tracked/remote repositories?
asked
Feb 17, 2020
in
Git
by
SakshiSharma
git-commit
#git-remote
0
votes
Q: How do you find a list of files that have changed in a particular commit?
asked
Oct 16, 2019
in
Git
by
rajeshsharma
git-commit
git-change-
...