git workflow for D

ketmar ketmar at ketmar.no-ip.org
Mon Dec 4 01:54:57 UTC 2017


Basile B. wrote:

> On Sunday, 3 December 2017 at 22:22:47 UTC, Arun Chandrasekaran wrote:
>> Git CLI is arcane and esoteric. I've lost my commits before (yeah, my 
>> mistake).
>
> Who hasn't ;)
me.

> Happened to me last time because i tried a command supposed to remove 
> untracked files in submodules...but used "reset" in a wrong way... ouch.
"git reflog". nothing commited is *ever* lost until you do "git gc". git 
sometimes does GC on its own, so you can turn it off with:

	git config --global gc.auto 0

don't forget to manually GC your repo then with "git gc", or it may grow 
quite huge.


More information about the Digitalmars-d-learn mailing list