![]() # which has all the branches, tags and commits history. # Done! Now your local git repo is connected to "new repo" remote # Rename "new repo" remote into just 'origin': # View existing remotes (you'll see 2 remotes for both fetch and push) Remove "old repo" origin and its dependencies. # Push all local branches (note we're pushing to new-origin): Push all local branches and tags to a "new repo". # Now we have to have all remote branches locally. # checkout to create a local copy of the missing ones: ![]() ![]() # If some of the remotes/ branches doesn't have a local copy, # View all "old repo" local and remote branches: # Fetch all of the remote branches and tags: Make sure you have a local copy of all "old repo" # to move, and "new repo" the one you wish to move to. # Let's assume we call "old repo" the repository you wish # Here are a simple and quick steps that does exactly this. # to a new remote repository (/new remote origin). # Sometimes you need to move your existing git repository ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |