document using token to clone private repo #458
Labels
No labels
Codeberg Pages
Documentation Usability
Forgejo
Good First Issue! 👋
Kind: Bug
Kind: Documentation
Kind: Enhancement
Kind: Feature
Kind: Question
Kind: Security
Licensing
Part: Generator
Priority: High
Priority: Low
Priority: Medium
Reviewed: Confirmed
Reviewed: Duplicate
Reviewed: Invalid
Reviewed: Wontfix
Status: Blocked
Status: Help wanted
Status: In progress
Status: Needs feedback
Status: Ready for Review
Status: Review
Status: Stale
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Documentation#458
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!!! I just solved a problem that has been bugging me for years.
If you have a private repo, how do you clone it?? Especially when multiple accounts, keys and other credentials are in the mix. (I know that in theory there are ways and I've even done it once or twice, but they are quite fragile and/or forgetable.)
Codeberg Docs Generating an Access Token tells you how to make an access token but then you are on your own. Put it in your mobile app or something. I read it a long time ago and never thought much more of it. I am very Basic user; totally amateur hour over here.
I read on SOF this comment about how to do this for github:
And also this longer one with screenshots of how GitHub does it. This one made me wonder if it is possible with codeberg, and it is!
Tried making an oauth2 token but couldn't figure that out so used the regular "access token" and it seems to work with line like
This should be documented because it is very useful.
Would be really nice: link to the documentation from the place a person might look for it, ex
in this zone:

I have some vague sense there might be something required after this to make it into an ssh authenticated situation afterwards? I recall from previous attempts at solving this issue. git-config?
Sorry this isn't extremely well composed. If it is unintelligible let me know and I will tighten it up.
There are likely some nuts n bolt details/complications of which I am ignorant, hopefully someone more knowledgeable can bring them up.
Hi thanks for doing that!
I don't know if this should be done here, or there. Or maybe make a PR? If it's not too elaborate to set up locally I might be able to do that but not sure if I would be waiting for this change to be completed, or making it against the proposed commit, or what. So if it's simpler to just take from this whatever is useful probably better.
This is suggestions to make things extremely explicit. But it destroys the terseness so idk might not be appreciated. It depends who is your target audience really.
This is the exact version I am looking at, in case it changes in the future:
9f7d0bad4a/content/git/clone-commit-via-cli.mdSuggest to add somewhere:
Suggesting changing:
to something less technical. Assuming I understood the instructions correctly would be like:
Suggest adding how to convert to SSH; something like:
Looks like this got lost. :( I see at https://codeberg.org/Codeberg/Documentation/src/branch/main/content/git/clone-commit-via-cli.md it is not included.
I am always referring back to this thread to remember how to do it.
Works for me but kind of hard to find for others.
@soas thank you
Hey everyone! is there anything kinda basic that I can do to get this included?
I can't follow what happened in #459 though.... That's over my head. If the blockage has to do with a zillion merge conflicts from months ago I don't know what to do about solving that.
I refer to this thread almost every time I work on my stuff, it's so useful. Maybe I have some unusual work style and the info is not of general interest?