Documentation and HOW-TOs
To get new users started, to facilitate workflow and clarify issues for experienced users, documentation and HOWTOs seem helpful.
We might start them in a dedicated repo, potentially publish them as static pages?
We could also use the excellent and community-driven readthedocs.io service for documentation. I think his might be more valuable than re-creating another documentation hosting site which needs to be maintained (even if it is just a script triggering the rebuild+publish of static pages).
Let's start with some simple "getting started" guide explaining how to register, upload SSH key, and create a repo?
If you want I can set up a Sphinx or Mkdocs repo (depends on personal preference) with publishing to readthedocs.io and some first content. Simple example of what I'm talking about: https://pykube.readthedocs.io (source repo is https://github.com/hjacobs/pykube/tree/master/docs)
Good idea! Even a set of simple markdown files in a repo would be a good start, those we can then format into any suitable format.
(This would have the advantage that editors can use Gitea's builtin WYSIWYG editor for markdown files, and Sphinx can read those too, if the appropriate plugin is installed. Also gitea's wiki can directly import/export pages as md).
I would need someting like that.
I need to know how to connect my "local git" to my codeberg-repo.
Also some workflows would be nice
- password-less access to the codeberg-repo (it is about SSH, keys, etc)
- "synchronize" local and codeberg-repo (pull and fetch?)
- hanlding conflicts while "synchronize" etc
My recommendations as a more detailed table of content for the wiwk
- Use git and Codeberg with username and password (clone & push)
- Setup Codeberg to use it password-less with git
- generate and upload a key
- Passphrase or not? what are the consequences for the workflow!?
- separate key for each client/machine or one key for all?
- what is this ssh-keyagent about?
- clone & push
- generate and upload a key
- Setup git (remote, master, etc) to be used with Codeberg
- Setup KeePassXC to be used with git on Codeberg
You can go ahead and just start, if you like 👍
The wiki is also a git repository internally, we can fix/move/rename whatever we want later anyway (even if seemingly not possible by editing online)
an ssh-agent will unlock your keys (by entering the passphrase once) and will then be able to use that key without a passphrase. Therefore I think it is better to always generate a key with passphrase. I am a bit old-school, and I think Desktop environments nowadays have fancy gui popups, but what I do here is:
$ ssh-agent bash # this starts a new bash that acts as ssh-agent $ ssh-add # will ask for passphrase
Now as long as that bash runs, I am able to push and pull without passwords.
Deleting a branch is permanent. It CANNOT be undone. Continue?