This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's what I ended up doing - it worked perfectly. Note that I was moving from my old host (Bitbucket) to my new one (Gitlab). My comments are above the commands: | |
# First, shallow-clone the old repo to the depth we want to keep | |
git clone --depth=50 https://[email protected]/....git | |
# Go into the directory of the clone | |
cd clonedrepo | |
# Once in the clone's repo directory, remove the old origin | |
git remote remove origin |