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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -