[git-users] How to print log tree

2023-06-06 Thread Zhanbang He
Hi all
when run `git log`, it only show many commits. But can not show  
commits with  branch-tree.
So How  can I print log tree?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/ee807728-8bcf-4732-8516-cf816d6d09fcn%40googlegroups.com.


Re: [git-users] Re: `git gc` error: fatal: could not find pack

2023-06-06 Thread Lyndon Gingerich
In further messing around, I lost one of the pack files. :( Now I'm
re-cloning the repository from the remote. I'm keeping the old .git folder
backed up, though, in case anyone has suggestions.

On Mon, Jun 5, 2023 at 4:26 PM Lyndon Gingerich 
wrote:

> `git verify-pack -v ` returns:
>
> fatal: Cannot open existing pack file '.idx'
> : bad
>
> On Mon, Jun 5, 2023 at 3:54 PM Lyndon Gingerich 
> wrote:
>
>> The packfile is only ~52kb, so its size is probably not an issue.
>>
>> I successfully ran `git gc` on two other repositories, so the issue is
>> not global.
>>
>> On Monday, June 5, 2023 at 3:48:03 PM UTC-5 Lyndon Gingerich wrote:
>>
>>> I discovered this problem from investigating the Git console in
>>> JetBrains Rider, noticing that it was taking excessively long to create
>>> commits. I'm running Git for Windows.
>>>
>>> When I run `git gc`, I get this output:
>>>
>>> Enumerating objects: 152755, done.
>>> Counting objects: 100% (152755/152755), done.
>>> Delta compression using up to 16 threads
>>> Compressing objects: 100% (70481/70481), done.
>>> Writing objects: 100% (152755/152755), done.
>>> Total 152755 (delta 83181), reused 150956 (delta 81540), pack-reused 0
>>> fatal: could not find pack 
>>> fatal: failed to run repack
>>>
>>> Steps I have tried (mostly suggested by ChatGPT):
>>>
>>>- Closing all programs with Git integrations
>>>- Hunting down ; it exists in .git/objects/pack and I
>>>have the permissions "Full control", "Modify", "Read & execute", "Read",
>>>and "Write" (though not "Special permissions")
>>>- Running the command as administrator in case permissions were the
>>>issue
>>>- Checking for file locks on the packfile
>>>- Running `git fsck` on the repository
>>>- Running `git gc --no-prune` for testing (still failed)
>>>- Checking for Git updates
>>>- Restarting my computer
>>>
>>> Googling (at my level of skill, anyway) isn't finding any help. What can
>>> I do?
>>>
>>> Many thanks!
>>> Lyndon Gingerich
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Git for human beings" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/git-users/zAIO4Ltrprk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> git-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/git-users/6f2c3ea2-ec3a-4002-8c10-258995bacc09n%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CAJ4Y%3DGnZbt%3DfB8b2m7ZfV70XnYbhcVgB2U8HKgWZVZq%2B_dBnzg%40mail.gmail.com.