Timeline for Git: Move head one commit ahead
Current License: CC BY-SA 3.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 24, 2014 at 5:46 | history | edited | alex | CC BY-SA 3.0 |
added 3 characters in body
|
| Jan 14, 2014 at 3:22 | vote | accept | SeekingAlpha | ||
| Jan 14, 2014 at 3:09 | comment | added | Rohan Singh |
If you didn't do a hard reset, your changes are not discarded. However, the commits themselves have been removed from the index. The changes are just in the files in your working directory. Using git reflog will let you fix this.
|
|
| Jan 14, 2014 at 3:06 | history | edited | SeekingAlpha | CC BY-SA 3.0 |
added 272 characters in body
|
| Jan 14, 2014 at 3:03 | answer | added | user3159253 | timeline score: 49 | |
| Jan 14, 2014 at 3:02 | comment | added | Chris Hayes |
If it's the latest commit on a branch (e.g. master), you can just do git checkout master. If it's not, you can checkout the specific SHA1, or checkout the tip of the branch and work backwards. There's probably other ways as well.
|
|
| S Jan 14, 2014 at 3:01 | history | suggested | agconti | CC BY-SA 3.0 |
code formatting
|
| Jan 14, 2014 at 3:00 | review | Suggested edits | |||
| S Jan 14, 2014 at 3:01 | |||||
| Jan 14, 2014 at 2:59 | history | asked | SeekingAlpha | CC BY-SA 3.0 |