The second edition was released... Thank you for your help with the 1st edition. It's explained in an easy-to-understand way in the manga, so it's easy to get started ↑
In order to prevent people who don't have friends from thinking "Github is scary!" when they join a team development site, we tested it with each person playing two roles.
I used this as a reference.

1st person. First, create a repository
Let's create a repository on github. I created a private repository with the name githubtest.

Create an appropriate file (test.sh) in an appropriate directory and commit.

git init git add . git commit -m "first commit" branch -M main remote add origin https://github.com/githubusername/githubtest.git push -u origin mainNow you can commit to the test repository.
Pretend to be the second person and send a pull request
Create an account on github again using a chrome incognito window.
Become the first person and invite the second person.
Click ... in the upper right corner of the relevant repository and click Settings.

I think you can invite by Manage access → Invite a collaborator.


Until the second commit
It would be nice if you had a separate computer, but it's a hassle.Digital Ocean (In my opinion, I think it's pretty easy to use, apart from features and regions.) to set up a VPS.
I think the cheapest version of Ubuntu would be fine.
Once you have logged in, clone the test repository created by the first person using the following command, which can be any directory.
git clone https://github.com/githubusername/githubtest.git .I think the feature branch is a good place to develop.(git flow . Originally it would be like main→develop→feature, but since it's for verification, I'll import feature into the main branch immediately.)
git checkout -b feature/testAfter adding the appropriate code to the feature branch, commit it.

git add . git commit -m "add my test" git push origin feature/testGo to the page of the branch you created on github and submit a pull request.


For information on how to write a pull request, see here.
Now you can send a pull request!
Go back to the first person and merge the pull request
As the first person, go to the relevant pull request page and merge. If necessary, review from Files changed.

I was able to merge.
summary

You can do it without friends, so if you've been working in a legacy environment but want to move into a modern development environment, give it a try!




comment