Hi Gottfried,
gfp <[email protected]> writes:
Am 25.02.26 um 21:06 schrieb Ian Eure:
Hi Gottfried,
Gfp <[email protected]> writes:
Hi Guix,
I don´t use guix home
in the manual: 13.3.10 backup section is for guix home AFAIU.
I often fall into trouble because of Emacs and Gnus.
What does Guix offer to backup e.g. every 2 days my Emacs
configuration
so that in case of trouble with Emacs or Gnus
my Emacs configuration, including gnus is saved
and I can come back to it?
This should not include all my work, which I have done in
between,
only my configuration of Emacs
which is stored in .config/emacs
In case of trouble
I can come back to this configuration of 2 days ago or 4 days
ago
and restore my working emacs.
The simplest thing you can do is put your Emacs configuration
into
Git. As long as you make commits when you change the
configuration,
you can restore to any previous state; it also helps to share
the
configuration between systems. There is no special Guix
facility
for this, just use Git as normal.
There are also numerous dotfile manager tools which can help
with
this. GNU Stow is one I know of which is already in Guix, but
I’m
sure there are others.
-- Ian
Sorry for my simple questions, but I have never used git.
This list is probably not the best place to do that, but there are
many online resources to help you.
The book Pro Git[1] is available online for free, and very good.
It covers a lot of the Git basics, and the end covers internals,
if you want to understand those.
Learn Git[2] is a zine explaining Git, which is also very good. I
believe it costs a small amount.
In using git, does it mean that if you make changes you do it
only in git,
or you do make changes in .config/emacs or init.el and after
that save
it in git,
or configure git so that it saves always your .config/emacs or
the
init.el file?
Git works similarly to other version control systems. You edit
the files normally, then check in the changes to version control.
Can git be used also with gitg (GUI of git) in order not to be
completely dependent on the terminal commands, which I don´t
know yet?
Or with emacs-magit (which I don´t know yet also)?
Yes.
Would I then also be able to save my Guix configuration with
git...?
Git can keep any kind of file under version control, but it’s
intended for (and works best with) text formats.
(locally or on the external hardisk or online (which I would not
like
at the moment)?
Yes, you can create clones of your repo on disks or machines
reachable over the network.
-- Ian
[1]: https://git-scm.com/book/en/v2
[2]: https://wizardzines.com/zines/git/