New github user with manny errors #23401
-
Hello, community!I try to learn how to use git and Github and vs code. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
This is normal. If you clone a repository you simply download all the source and its history. However it seems the repository is not yours. You got a few options then. The most common one is to fork it (basically creating a copy of that repository or one of the branches). Since you forked it, the newly created repository is yours. If you want to contribute back to the ‘main’ project you can open up a Pull Request (PR) briefly explaining what you changed and why you think it would help the project. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your time! But if I make from vs code a new branch , why I can’t open a pull request? It tells me I am not authorized to make changes… |
Beta Was this translation helpful? Give feedback.
-
For example…If I want to work on your repository…First I have to fork it ,work on itt and then make a pull request? |
Beta Was this translation helpful? Give feedback.
-
PaulAniculaesei:
Because you need to push the branch to somewhere public first. You can’t push your branch to someone else’s repository, so you need your own (a fork in GitHub terms). |
Beta Was this translation helpful? Give feedback.
-
I suggest you check GitHub Docs Fork a repo - GitHub Docs |
Beta Was this translation helpful? Give feedback.
Because you need to push the branch to somewhere public first. You can’t push your branch to someone else’s repository, so you need your own (a fork in GitHub terms).