Really Messed Up in Github/Git. Should I rebase? Or what? -
ok messed github. working on project on computer a. created github repo , pushed commits it. wanted add changes reason wasn't working , authors got messed because didn't correctly. anyway out of frustration deleted github repo. how repush files new repo created, instead of old one?
first, delete old github remote attached repo (usually remote name called origin
):
$ git remote rm *remote-name*
next, add new one:
$ git remote add origin git@github.com:your_username/your_repo.git
finally, push commits new repo:
$ git push --set-upstream origin master
Comments
Post a Comment