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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -