I made a private github repository in which i cloned a repository I needed to work on. I have all their files locally and already finished coding but I am unable to reflect those changes onto my private github repository.
so this is what i did after cloning the repository
git checkout -b private
git remote add private git@github.com:<github-username>/<repositoryname>.git
git push private -u master
however this would always fail when i tried again it worked but showed this
Enumerating objects: 42, done.
Counting objects: 100% (42/42), done.
Delta compression using up to 8 threads
Compressing objects: 100% (36/36), done.
Writing objects: 100% (42/42), 22.55 KiB | 7.51 MiB/s, done.
Total 42 (delta 15), reused 0 (delta 0)
remote: Resolving deltas: 100% (15/15), done.
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/<githubusername>/<repositoryname>/pull/new/master
remote:
To https://github.com/<githubusername>/<repositoryname>
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'private'.
it was supposed to say private -> master so i know something is not right
What i am trying to do is have a new branch track my changes and have a remote for my private repository so i can push my new branch to the master branch of my repository but i think it is trying to push to the other person's master.
EDIT: when i want to push it tells me to use this first
git push --set-upstream origin private
but when i do that i get denied access by the repository i cloned, this is why i think it is trying to push to their master instead of mine even tho i used my username and repository when setting it up