Difference between revisions of "Git reset"
Jump to navigation
Jump to search
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | *https://git-scm.com/docs/git-reset | ||
git reset | git reset | ||
Line 5: | Line 6: | ||
[[git reset --merge]] | [[git reset --merge]] | ||
+ | (no output) | ||
+ | [[git reset --hard]] HEAD | ||
+ | [[git reset --hard master]] | ||
== Related terms == | == Related terms == | ||
* <code>[[git add]]</code> | * <code>[[git add]]</code> | ||
+ | * <code>[[git branch -r]]</code> | ||
+ | [[git revert]] | ||
== See also == | == See also == | ||
+ | * {{git reset}} | ||
* {{git}} | * {{git}} | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 11:08, 7 November 2024
git reset (no ouput}
git reset --merge (no output)
git reset --hard HEAD git reset --hard master
Related terms[edit]
git revert
See also[edit]
git reset
[--merge | --hard ]
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: