Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] quick question between two commands, not sure which one to use to go back before recent commits from

[DiscordArchive] quick question between two commands, not sure which one to use to go back before recent commits from

[DiscordArchive] quick question between two commands, not sure which one to use to go back before recent commits from

rektbyfaith
Administrator
0
11-04-2024, 10:59 AM
#1
Archived author: Thiesant • Posted: 2024-11-04T10:59:29.140000+00:00
Original source

quick question between two commands, not sure which one to use to go back before recent commits from this week
git revert <SHA-1>
will undoing changes in a specific commit (but will keep these commits in history)
git reset --hard <SHA-1>
will revert back to a state where these commits are not yet applied ?
rektbyfaith
11-04-2024, 10:59 AM #1

Archived author: Thiesant • Posted: 2024-11-04T10:59:29.140000+00:00
Original source

quick question between two commands, not sure which one to use to go back before recent commits from this week
git revert <SHA-1>
will undoing changes in a specific commit (but will keep these commits in history)
git reset --hard <SHA-1>
will revert back to a state where these commits are not yet applied ?

rektbyfaith
Administrator
0
11-04-2024, 11:13 AM
#2
Archived author: sudlud • Posted: 2024-11-04T11:13:58.233000+00:00
Original source

Yes, revert basically makes a commit undone, the reset hard sets your state to that point in time in the past
rektbyfaith
11-04-2024, 11:13 AM #2

Archived author: sudlud • Posted: 2024-11-04T11:13:58.233000+00:00
Original source

Yes, revert basically makes a commit undone, the reset hard sets your state to that point in time in the past

rektbyfaith
Administrator
0
11-04-2024, 11:16 AM
#3
Archived author: Thiesant • Posted: 2024-11-04T11:16:40.399000+00:00
Original source

thanks, will do a reset then to be sure to go back to a clean state
rektbyfaith
11-04-2024, 11:16 AM #3

Archived author: Thiesant • Posted: 2024-11-04T11:16:40.399000+00:00
Original source

thanks, will do a reset then to be sure to go back to a clean state

rektbyfaith
Administrator
0
11-04-2024, 11:18 AM
#4
Archived author: Thiesant • Posted: 2024-11-04T11:18:43.919000+00:00
Original source

(either I have broking something with my edits on the server or the mod-challenge-modes needs an update)
rektbyfaith
11-04-2024, 11:18 AM #4

Archived author: Thiesant • Posted: 2024-11-04T11:18:43.919000+00:00
Original source

(either I have broking something with my edits on the server or the mod-challenge-modes needs an update)

rektbyfaith
Administrator
0
11-04-2024, 11:36 AM
#5
Archived author: WattyNeko • Posted: 2024-11-04T11:36:23.692000+00:00
Original source

Ty I got leech thx
rektbyfaith
11-04-2024, 11:36 AM #5

Archived author: WattyNeko • Posted: 2024-11-04T11:36:23.692000+00:00
Original source

Ty I got leech thx

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)