git-reflog Questions
4
Solved
Is it possible to view the reflog of a remote? That is, I want to know what the output of git reflog is on another remote machine.
Note that I am not asking for the reflog of remote-tracking branch...
Neoteric asked 10/4, 2012 at 23:54
3
Solved
I need to see the history of branches that i was using. For example i have 4 branches: master, b-1, b-2, b-1-1. Thе branch "b-1-1" is child of branch "b-1". First i was at maste...
Abridgment asked 25/10, 2020 at 8:1
13
Solved
I'm afraid I couldn't find anything quite like this particular scenario.
I have a git repository with a lot of history: 500+ branches, 500+ tags, going back to mid-2007. It contains ~19,500 commit...
Pace asked 23/12, 2010 at 3:7
0
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 r...
Faceplate asked 26/5, 2022 at 8:56
3
Solved
Can I reflog a specific branch?
git reflog shows all history on the repo. But I want to check the history of one specific branch, say production. Is there a way to do that?
Veljkov asked 24/10, 2016 at 4:50
8
Solved
The git-reflog command doesn't by default show a date alongside each entry, which strikes me as a strange oversight; I think this would be very helpful.
Are there any command-line options, or othe...
Belgae asked 28/6, 2013 at 16:18
8
Solved
In Git, I was trying to do a squash commit by merging in another branch and then resetting HEAD to the previous place via:
git reset origin/master
But I need to step out of this. How can I move ...
Pammie asked 29/12, 2015 at 21:53
7
Solved
The man page says that log shows the commit logs and reflog manages reflog information. What exactly is reflog information and what does it have that the log doesn't? The log seems far more detaile...
Complexioned asked 25/7, 2013 at 12:13
2
Solved
This answer tells how to checkout to the previous branch, and helpfully explains @{-1}: https://mcmap.net/q/53286/-is-there-any-way-to-git-checkout-previous-branch
The previous branch is important...
Freudberg asked 4/11, 2016 at 14:16
1
After a lot of rebasing a repository to our latest needs our reflog is full of commits and orphan branches. We reached the final state of our reorganization.
While there're branches and commits le...
Smithery asked 2/3, 2018 at 11:7
1
Solved
I just did a simple git reflog and this is the first few lines I got:
column1 Column2 Column3
2797a1d4 (HEAD -> master, upstream/master) HEAD@{0}: checkout: moving from master to master
2797a1d...
Kopple asked 5/2, 2018 at 19:38
2
Solved
I ran into an unusual git issue earlier that I've since resolved, but I'm still curious as to why it happened.
The problem occurred when I accidentally deleted the branch I was currently working o...
Kessel asked 17/9, 2014 at 18:44
2
Solved
I do not have a specific problem at hand, but I have encountered in the past some cases where I accidentally blew up my index, and wished I could go back the the previous state of a given file, whi...
Nth asked 6/7, 2016 at 12:1
1
Solved
I know that compressed version of reflog is stored in .git/packed-refs
but where is actual reflog is located and how git restores history when one types git reflog ?
Odelle asked 3/8, 2015 at 16:1
1
Solved
I noticed in the documentation you can specify the parameter --grep-reflog
--grep-reflog=<pattern>
Limit the commits output to ones with reflog entries that match the specified patter...
Fibriform asked 8/4, 2015 at 20:7
1
Solved
I removed some unreachable and dangling commits in my local repo using
git fsck --unreachable --dangling --no-reflogs
git reflog expire --expire=now --all
git gc --prune=now
But I find the remov...
Ultravirus asked 18/9, 2014 at 8:3
1
After I do the interactive rebase: git rebase -i HEAD~20 I get a new commit, e.g. ea1234ea
I know that the history is in the reflog, but how can I get a list of commits squashed in this commit inc...
Nonviolence asked 18/9, 2013 at 7:4
3
Is there a way to push the reflog to a remote? This seems like it would be an incredibly useful thing to do, but I do not know of a way to do it. I'm envisioning something like git push --include-r...
Ethelinda asked 30/5, 2013 at 17:34
2
Solved
I added some files to the index but then by mistake I deleted them with git reset --hard. How do I recover them?
Here's what happened:
I added all files using git add .
I then committed
When I ch...
Lorrimor asked 28/5, 2012 at 10:17
1
Solved
I tend to be a bit paranoid about my data, including the ability to recover it.
Git reflog data is pruned after 30 days. Is there a way of setting it so that the reflog data is maintained and kept...
Ochs asked 2/5, 2012 at 22:45
3
Solved
I know that GIT rebases will rewrite the history -- i.e. the commit ids will change. However, Is there any way to trace when a branch was rebased and from which branch?
EDIT: I have a development ...
Raccoon asked 23/1, 2012 at 21:56
1
© 2022 - 2024 — McMap. All rights reserved.