[DiscordArchive] Are you talking about `git checkout <commit-number>`?
[DiscordArchive] Are you talking about `git checkout <commit-number>`?
Archived author: Revision • Posted: 2023-02-06T14:49:12.896000+00:00
Original source
Are you talking about `git checkout <commit-number>`?
Archived author: Honey • Posted: 2023-02-06T14:49:37.635000+00:00
Original source
Sure, can do. But I'm afraid it's not helpful too many. Most are either capable of googling that or just use the download button.
Archived author: Honey • Posted: 2023-02-06T14:49:46.650000+00:00
Original source
I think so.
Archived author: Revision • Posted: 2023-02-06T14:50:04.599000+00:00
Original source
It's a good command to know if you ever have to revert to a previous commit in case of errors etc.
Archived author: mynameismeat • Posted: 2023-02-06T15:03:09.964000+00:00
Original source
that is what I'm talking about. but I think adding a line such as the one below might be helpful to people. even if they know `git checkout COMMIT`, it's nice as a quick reference to something that a user can copy and paste.
"""
If you have git installed you can checkout the latest commit before the squash with this command:
```bash
$ git checkout e7cbc80a913bb351f7c588f1d0195bf26b21985b
```
"""
I agree that a lot of people might be aware that they can run `git checkout COMMIT`, but I think if we're telling someone they'll have to do something, it doesn't hurt to be more specific on what they have to do in order to apply to all skill levels.
Someone new *can* google it, but if we know the command they'll have to run, why not just include it anyway
Archived author: Bench • Posted: 2023-02-06T15:09:03.314000+00:00
Original source
Wouldn't be the first squash announcement with the command included
Archived author: Bench • Posted: 2023-02-06T15:12:12.787000+00:00
Original source
Nevermind, apparently the announcements don't actually include the command, but it immediately gets thrown in <#284406375495368704>
Archived author: Revision • Posted: 2023-02-06T15:12:36.574000+00:00
Original source
Wouldn't hurt to have it on the wiki saying that if you want to switch to a previous commit for whatever reason or to go through commits due to a squash the command could be used.
Archived author: Honey • Posted: 2023-02-06T15:12:54.630000+00:00
Original source
Dw, i edited it in. It can't hurt.
Archived author: mynameismeat • Posted: 2023-02-06T15:13:28.216000+00:00
Original source
thanks