I tried running git revert
as below using Bash, and I got some views.For example, --quit
or --continue
.Are these used in subsequent commands like typing --quit
Would it be possible for you to tell me how to use git?Thank you for your cooperation.
addition:
Enter git add.
to display "Did you mean this?add".Do I have to type something in the subsequent command?For example, add or Yes.
masa582:~/workspace/tmp(test2)$git add.
git: 'add.' is not agit command. See'git --help'.
Did you mean this?
add
masa582:~/workspace/tmp(test2)$
The commands used in git
are often executed in the form git<command>
, but
From Command Line (bash)
$git<command> --help
$ manage -<command>
and so on.If it's about revert,
$git revert --help
$ manage-revert
as shown in .
If it is an official document on the web, please refer to the Japanese version as well please refer to it.
https://git-scm.com/book/ja/v2
Therefore, if you type git revert
like this, you will receive a message that this command is not normally accepted.
If you check the English text, you will understand
Usage is how to use it
git revert [<option>]<commit-ish>...
It means to use
[ ]
is any input item and
<>
is the input value you set yourself
The revert command will negate the contents of a particular commit, so
You need something like a commit (the hash value of the commit is OK)
refers to --quit
or --continue
and
If you wish to use it,
git revert --quit --continue <commit hash value >
I think the following URL will be helpful.
git official document git revert
https://git-scm.com/docs/git-revert
Git introductory revert
that even monkeys can understand
http://www.backlog.jp/git-guide/stepup/stepup7_2.html
© 2024 OneMinuteCode. All rights reserved.