Expanded on details #15

Closed
Ghost wants to merge 1 commit from (deleted):main into main
First-time contributor

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.

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.
Ghost added 1 commit 2023-08-10 12:55:23 -04:00
Made the steps more detailed.
scott approved these changes 2023-08-10 13:24:48 -04:00
@ -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>
Owner

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

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
Author
First-time contributor

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.

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.
Member

👍

Maybe

git clone ssh://git@git.tams.tech:2222/TWS/<PROJECT>
[see setting up ssh](link)

or

git clone https://git.tams.tech/TWS/<PROJECT>
👍 Maybe ```md git clone ssh://git@git.tams.tech:2222/TWS/<PROJECT> [see setting up ssh](link) or git clone https://git.tams.tech/TWS/<PROJECT> ```
Author
First-time contributor

Oooh yeah I like how that looks. I will draft an ssh page and figure something out with the URL.

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.
Owner

Why delete the local copy?

Why delete the local copy?
Author
First-time contributor

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.

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.
Owner

I would use

git remote rename origin upstream
git remote add origin ...
I would use ``` git remote rename origin upstream git remote add origin ... ```
Author
First-time contributor

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...

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...
Member

The original outline was rather slapdash, just to get something out there, so feel free to deviate from it significantly.

The original outline was rather slapdash, just to get something out there, so feel free to deviate from it significantly.
Owner

There could be another section that states how to fork from the CLI

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.

> There could be another section that states how to fork from the CLI 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.
Owner

I agree the added detail is good, thank you

I agree the added detail is good, thank you
todtb approved these changes 2023-08-11 09:54:38 -04:00
Owner

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?

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?
Member

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.

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.

Definitely an option

deleting and re-cloning the repo after forking

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.

> 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. > 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. Definitely an option > deleting and re-cloning the repo after forking 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.
Owner

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.

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.
Author
First-time contributor

Ok... a lot to unpack here,

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?

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.

So I think we need an additional set of instructions for a proprietary workflow.

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.

I was also thinking perhaps "creating a new feature" should be a separate doc from "create a new repository".
Correct. You could branch out to a number of dedicated files for whatever heading/opic.

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.

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.

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.
I agree with @todtb either way can work.

Ok... a lot to unpack here, > 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? 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. > So I think we need an additional set of instructions for a proprietary workflow. 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. > I was also thinking perhaps "creating a new feature" should be a separate doc from "create a new repository". Correct. You could branch out to a number of dedicated files for whatever heading/opic. > 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. 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. > 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. I agree with @todtb either way can work.
Author
First-time contributor

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.

I was going to say the exact same thing last week on our discussion on Matrix. This seems like a good idea.

> 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. I was going to say the exact same thing last week on our discussion on Matrix. This seems like a good idea.
Ghost closed this pull request 2024-10-11 15:18:10 -04:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TWS/meta#15
No description provided.