Expanded on details #15
Labels
No labels
backlog
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TWS/meta#15
Loading…
Reference in a new issue
No description provided.
Delete branch "(deleted):main"
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?
Expanded upon @todtb's outline. Made the steps more detailed. This should make it so anyone can follow no matter the skill level. Don't forget that even though you may know what you are doing others may have a trouble following along.
@ -13,0 +12,4 @@
Here we will clone the main repository and do some initial setup.
1. Clone the repository to your machine, where `<PROJECT>` is the name of the project.
```
git clone https://git.tams.tech/TWS/<PROJECT>
I would use the ssh URL and perhaps make a note of how it differs from github ssh URLs.
May also be worth having a separate note about SSH keys and their use in forgejo
From a simplicity stand point using
https
is, well, simpler. No need to set up SSH keys to get started.Now is that great practice? Probably not but yes there could be a section for setting up SSH keys and using the SSH URL. I was debating about adding it into this doc or creating a separate doc about utilizing ssh.
👍
Maybe
Oooh yeah I like how that looks. I will draft an ssh page and figure something out with the URL.
@ -13,0 +32,4 @@
git commit -m init
git push origin main
```
5. Once the changes can be seen at `https://git.tams.tech/TWS/<PROJECT>`, you can delete the local repository on your computer.
Why delete the local copy?
Because we are done working with
TWS/<PROJECT>
. I want to drive home that once it's initialized we are done working from it and will be using the fork instead.@ -13,0 +41,4 @@
1. Visit `https://git.tams.tech/TWS/<PROJECT>` and in the upper right hand corner press "`Fork`".
2. Leave everything default as all the information for 'Owner', 'Repository Name' & 'Description' should be correct. Press "`Fork Repository`".
3. You should now be able to visit `https://git.tams.tech/<YOU>/<PROJECT>`, where `<YOU>` is your username & `<PROJECT>` is the name of the project.
4. Clone the repository to your machine.
I would use
Yes one could do it this way. @todtb's original outline said click the fork button so I ran with that. I stated at the top of the section that I this write up will describe how to fork in the web interface.
There could be another section that states how to fork from the CLI, changing the remotes but to my knowledge that would still require creating a repo under your username. Can you just push to an arbitrary URL and the project will be created? I know that's how the AUR works...
The original outline was rather slapdash, just to get something out there, so feel free to deviate from it significantly.
As far as I'm aware this is not possible. The issue I had isn't with using the web UI for the fork button, it was the idea that a fork is a separate repository rather than a new remote added to an existing repo.
I agree the added detail is good, thank you
Sorry, I disagreed really strongly about the idea of deleting and re-cloning the repo after forking. Just being quiet about it isn't a good way to handle that. The reason I disagreed is because they aren't separate repositories, they are forks, with a shared history. Trying to act like they're separate things seems confusing to me, and I'm not sure I understand the rationale for it. If we don't want people to push to the main repository, and only contribute through forks, we should simply disallow pushing to the main repo.
Furthermore, as we were discussing earlier, that strategy only really works when dealing with open-source software. We do want to encourage openness in general, as a way to ensure that our work goes towards encouraging freedom, but that is ultimately the decision of the client. It's also common to keep things closed until an initial release, and then open the repository up.
So I think we need an additional set of instructions for a proprietary workflow.
I was also thinking perhaps "creating a new feature" should be a separate doc from "create a new repository".
Maybe it would be good to talk about this real-time with a real-time collaborative text editor (Hedgedoc?) to try to hammer out the details of this?
Happy to discuss this synchronously.
Definitely an option
I think what @evanb was saying was only deleting the local clone. Mainly to avoid confusion. You could certainly leave it on your machine, as long as new work was done on your fork. Personally, I don't care to be to prescriptive with how contributors work on/maintain their machine or workflows. As long as it is understood that you don't push straight to the main repo (and we can enforce that as you mentioned), I have no concerns.
Also, yes, this pattern is most common in open source repos. Many organizations simply protect the main branch and enforce all commits to come through branch merges after peer review. So we can forgo the fork approach if that's what you were getting at? That's fine with me too.
Oh, one thing, I think a lot of this might be simplified by creating a template repo rather than relying too much on documentation. E.G. putting placeholder README, LICENSE, .gitignore, etc.
Ok... a lot to unpack here,
Lets, I am down for a discussion. Maybe a Matrix thread? The latter part is exactly what I am after. What are your thoughts how do you want to handle things.
The discussion of having a repo private happened after I make these changes. I have noted them and it will be updated at a later point, along with the ssh and license.
Spot on. Don't read to much into what I have. I document so my grandma can follow along, if you know what you are doing, you do you. I personally would find it annoying if we had a doc/section for every which way of doing something. That would get really confusing.
I was going to say the exact same thing last week on our discussion on Matrix. This seems like a good idea.
Pull request closed