Skip to main content
1 vote
0 answers
41 views

The git reflog command (or git log -g) can use a custom "pretty format". A ton of things are customizable in the pretty format. But although the reflog designator %gd can take two formats, ...
jbyler's user avatar
  • 8,017
1 vote
1 answer
141 views

I have an automated process that creates a temporary commit and stash, does some stuff, and then pops the stash and reverts the commit. After doing this a few times, the automated git gc complains ...
Ed Bennett's user avatar
2 votes
0 answers
337 views

I want list use git reflog format, and show it as sorted by date with (--date=relative) flag. git reflog --format='%C(auto)%h %<|(17)%gd %C(blue)%cr%C(reset) %gs' has following output: $ git ...
alper's user avatar
  • 3,525
2 votes
2 answers
1k views

I committed sensitive data to a single file on my main branch. I never pushed it. I can change HEAD to point to the previous commit with git reset HEAD^, but the commit is still hanging around as git ...
nmz787's user avatar
  • 2,219
0 votes
1 answer
106 views

I recently made a commit and it was incorrect so I tried to reset it to another commit. Now I'm realizing that the commit had information we needed for our team. Can the GitHub organization's admin ...
bubble's user avatar
  • 1
1 vote
2 answers
1k views

Suppose I have a git repo with app.py and I accidentally include an API key (or other secret) as plaintext in app.py in a commit that I have not yet pushed to a remote (lets say on Github). To undo ...
JWB's user avatar
  • 36
0 votes
2 answers
344 views

Wouldn't the git upstream rebase "hard case" problem be solved if each branch carried a reference to its initial base commit (say branch@{base}) ? This initial base commit (stored under ...
CidTori's user avatar
  • 418
3 votes
3 answers
3k views

Problem: accidentally did a git --amend and pushed it to a usb key from first computer pulled from the usb key to a second computer second computer repository is now corrupted git pull to first ...
ninjagecko's user avatar
  • 91.5k
2 votes
1 answer
140 views

My colleague did a series of careless pull/push operations. He end up in a situation where his local commit becomes missing I recovered his commit using git reflog. But I couldn't figure out why his ...
Boyang's user avatar
  • 2,586
3 votes
2 answers
1k views

I have a question about git reflog: at the beginning of my project, when I did a git reflog, I was able to see all the steps up to my original git clone command. Today, git reflog no longer goes ...
Julien REINAULD's user avatar
4 votes
2 answers
280 views

Is there any way to view expired reflogs? I've been keeping a few local commit I made months ago on a local branch and I've kept it up to date with our remote branch by rebasing frequently. Somehow I'...
mpellegr's user avatar
  • 3,202
4 votes
1 answer
99 views

I have two branches, master and b1. When I'm on b1, 'git reflog show' displays all the changes to b1. However, after I switch to master and run 'git reflog show b1', it displays something different. ...
Ltf4an's user avatar
  • 835
1 vote
1 answer
2k views

I'm the lone developer on a project where I'm working across multiple computers, some on VM. After doing a git clone of my repo on gitHub, calls to reflog only show items after the clone. How can I ...
RYS's user avatar
  • 472
1 vote
2 answers
2k views

I'm trying to recover code because I accidentally switched to a branch in eclipse and lost all my data, somehow (I still don't know what I did). When I open up my git reflog in command line, I see: ...
NorthGuard's user avatar
19 votes
10 answers
25k views

I tried the git reset --hard HEAD@{n} from git reflog and I lost everything with my current unstaged files :'( the unstaged files is the last git add I did, before then I tried git reset to the last ...
mochadwi's user avatar
  • 1,288

15 30 50 per page