{"action":"opened","issue":{"url":"https://api.github.com/repos/zzt96/gitskills/issues/6","repository_url":"https://api.github.com/repos/zzt96/gitskills","labels_url":"https://api.github.com/repos/zzt96/gitskills/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/zzt96/gitskills/issues/6/comments","events_url":"https://api.github.com/repos/zzt96/gitskills/issues/6/events","html_url":"https://github.com/zzt96/gitskills/issues/6","id":307133089,"number":6,"title":"git版本回退（没有push到远程库，仅commit到本地库）","user":{"login":"zzt96","id":16434079,"avatar_url":"https://avatars0.githubusercontent.com/u/16434079?v=4","gravatar_id":"","url":"https://api.github.com/users/zzt96","html_url":"https://github.com/zzt96","followers_url":"https://api.github.com/users/zzt96/followers","following_url":"https://api.github.com/users/zzt96/following{/other_user}","gists_url":"https://api.github.com/users/zzt96/gists{/gist_id}","starred_url":"https://api.github.com/users/zzt96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzt96/subscriptions","organizations_url":"https://api.github.com/users/zzt96/orgs","repos_url":"https://api.github.com/users/zzt96/repos","events_url":"https://api.github.com/users/zzt96/events{/privacy}","received_events_url":"https://api.github.com/users/zzt96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T06:36:07Z","updated_at":"2018-03-21T06:36:07Z","closed_at":null,"author_association":"OWNER","body":"1. 首先使用 git log查看历史版本（包括现在存在的版本）\r\n2. 得到commit id\r\n3. git reset --hard 版本号/或者git reset --hard HEAD^（退回到上一个版本）/ git reset --hard HEAD^^（退回到上上一个版本）\r\n4. 退回之后想撤销退回（找退回前的版本号）：git reflog 查看命令历史"}}
{"actor":{"display_login":"zzt96"}}