2020-12-27

Push from new local repo to old existing remote repo

I recently changed machine and I was working on a project on the other pc. The project was linked to a remote repo on GitHub and all was working fine.
Today I downloaded the zip file of that repo from GitHub and I ran "git init" to create a local repo.
My question is:

  • How can I make the remote repo "forget" about the other file and make the new one I downloaded on the new machine the "main" file?
  • Is there a better way (best practice) to handle your projects again once you change machine?

I'm sorry if my terminology and knowledge insulted Git's OGs, but I'm fairly new to version control!



from Recent Questions - Stack Overflow https://ift.tt/3aKrKon
https://ift.tt/eA8V8J

No comments:

Post a Comment