github - Git - push to remote repository failed -
ok, im new git , have isue can't solve myself, after couple of hours spended here , there on reading topics similar question. try describe in details:
name of github repo rep_1
in rep_1 there 5 folders (1,2,...,5), , there index.html in each. made new folder 'work' , git clone <url>
forked repo. in folder 1/index.html used git init
, git add .
, git commit -m
make changes.
then used git remote add 1 https://github.com/username/rep1
after that,
git push 1
and got:
fatal: current branch master has no upstream branch. push current branch , set remote upstream, use git push --set-upstream 1 master
i used didn't help. got time:
fatal: current branch master has no upstream branch. push current branch , set remote upstream, use git push --set-upstream work master
also dind't work.
repository not found
i've tried git push -u rep_1
, got same errors. have no ideas should do.
in rep_1 there 5 folders (1,2,...,5), , there index.html in each. made new folder 'work' , git clone forked repo. in folder 1/index.html used git init , git add . , git commit -m make changes.
here saying have cloned repo. later initializing new repository git init. so, when repository totally different repo cloned. therefore, not able push existing repository (i assuming remote adding repository cloned from.)
having, said if can tell requirement , can suggest steps need followed.
Comments
Post a Comment