Click here to Skip to main content
15,895,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I have an very old HP computer that can not power up now Pin
jlongo19-Jul-21 9:46
jlongo19-Jul-21 9:46 
GeneralTry this son Pin
User 1525428217-Jul-21 18:29
User 1525428217-Jul-21 18:29 
GeneralRe: Try this son Pin
jeron119-Jul-21 4:58
jeron119-Jul-21 4:58 
GeneralGit Problem! Pin
Kevin Marois17-Jul-21 10:37
professionalKevin Marois17-Jul-21 10:37 
GeneralRe: Git Problem! Pin
Chris Losinger17-Jul-21 10:52
professionalChris Losinger17-Jul-21 10:52 
GeneralRe: Git Problem! Pin
Kevin Marois17-Jul-21 10:55
professionalKevin Marois17-Jul-21 10:55 
GeneralRe: Git Problem! Pin
Kevin Marois17-Jul-21 10:56
professionalKevin Marois17-Jul-21 10:56 
GeneralRe: Git Problem! Pin
Jon McKee17-Jul-21 11:09
professionalJon McKee17-Jul-21 11:09 
This will rollback the last 4 commits back to the staging area (from committed to staged):
git reset --soft HEAD~4
This will rollback the last 4 commits back to the working tree (from committed to unstaged):
git reset --mixed HEAD~4

You could also use --hard if you wanted to just nuke everything back to a point (you'd lose the files rolled back though). Luckily it seems like the problem is still local, so reset should be safe from the perspective of the remote's history.

git revert probably didn't do what you wanted because it doesn't "rollback" in the traditional sense. It creates a new commit that reverts the specified commit but does not alter the history. So if the problem is a file in a commit that's causing an error, that file will still be in the history, still causing the problem.

Here's some reading for further options to check out:
Git - Undoing changes | Atlassian Git Tutorial
GeneralRe: Git Problem! Pin
Kevin Marois17-Jul-21 12:24
professionalKevin Marois17-Jul-21 12:24 
GeneralRe: Git Problem! Pin
Jon McKee17-Jul-21 17:22
professionalJon McKee17-Jul-21 17:22 
GeneralRe: Git Problem! Pin
Slacker00717-Jul-21 23:42
professionalSlacker00717-Jul-21 23:42 
GeneralRe: Git Problem! Pin
Kevin Marois19-Jul-21 6:09
professionalKevin Marois19-Jul-21 6:09 
GeneralRe: Git Problem! Pin
Slacker00719-Jul-21 6:21
professionalSlacker00719-Jul-21 6:21 
GeneralRe: Git Problem! Pin
Kevin Marois19-Jul-21 6:34
professionalKevin Marois19-Jul-21 6:34 
NewsWhy Germany has no street view Pin
RickZeeland17-Jul-21 8:13
mveRickZeeland17-Jul-21 8:13 
GeneralRe: Why Germany has no street view Pin
PIEBALDconsult17-Jul-21 8:36
mvePIEBALDconsult17-Jul-21 8:36 
GeneralRe: Why Germany has no street view Pin
obermd17-Jul-21 9:09
obermd17-Jul-21 9:09 
QuestionRe: Why Germany has no street view Pin
David Crow22-Jul-21 9:57
David Crow22-Jul-21 9:57 
GeneralRe: Why Germany has no street view Pin
Southmountain17-Jul-21 9:41
Southmountain17-Jul-21 9:41 
GeneralRe: Why Germany has no street view Pin
Eddy Vluggen17-Jul-21 10:00
professionalEddy Vluggen17-Jul-21 10:00 
GeneralRe: Why Germany has no street view Pin
peterkmx18-Jul-21 5:08
professionalpeterkmx18-Jul-21 5:08 
GeneralRe: Why Germany has no street view Pin
RickZeeland18-Jul-21 5:50
mveRickZeeland18-Jul-21 5:50 
GeneralRe: Why Germany has no street view Pin
Nelek18-Jul-21 8:18
protectorNelek18-Jul-21 8:18 
GeneralRe: Why Germany has no street view Pin
RickZeeland18-Jul-21 8:30
mveRickZeeland18-Jul-21 8:30 
GeneralRe: Why Germany has no street view Pin
Dan Neely19-Jul-21 3:28
Dan Neely19-Jul-21 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.