elixir-auth-google icon indicating copy to clipboard operation
elixir-auth-google copied to clipboard

how do you create a branch on the original repo?

Open ndrean opened this issue 3 years ago • 9 comments

Everything is in the title :) I want to propose a branch for Google One tap.

ndrean avatar Oct 21 '22 09:10 ndrean

@ndrean you should have write access to every repo in the dwyl org. Which means you can create a branch on any repo including this one. Please confirm you can:

git clone [email protected]:dwyl/elixir-auth-google.git && cd elixir-auth-google
git checkout -b 'one-tap-login-#53'

Make your desired changes ...

git commit -am "add one tap login ref #53"
git push

Thanks. 👌

nelsonic avatar Oct 21 '22 09:10 nelsonic

Yes, this is ok!

I forked and have a branch in my repo.

....but If I want to make a pull request, there is no other branch than "main" on dwyl/elixir-auth-google

ndrean avatar Oct 21 '22 09:10 ndrean

@ndrean ic you already have a fork, you could just change/update the Git remote url to the original repo and then push the branch directly. Like I said, you have write access. 👌🏻

nelsonic avatar Oct 21 '22 09:10 nelsonic

Screenshot 2022-10-21 at 11 54 16

I don't have the option to make a pull request on a branch, even if I created one in my fork. I am searching for how you do this. I don't want to make any mistake on the original repo, it was such a pain the other day to recover.

ndrean avatar Oct 21 '22 09:10 ndrean

ok

git push upstream my-branch

but if I want a reviewer, I need to make a pull request from my fork... humm ok

ndrean avatar Oct 21 '22 10:10 ndrean

git_fork_worklow

ndrean avatar Oct 24 '22 14:10 ndrean

git_fork_worklow

More readable. Isn't this correct?

ndrean avatar Oct 24 '22 14:10 ndrean

@ndrean this diagram makes sense. 👌

nelsonic avatar Oct 24 '22 14:10 nelsonic

Ok thanks for reassuring me. The missing piece is the merge....

ndrean avatar Oct 24 '22 15:10 ndrean