Created
December 13, 2018 07:18
-
-
Save sarvar/140082936963fc2bfdb7997aa2373e25 to your computer and use it in GitHub Desktop.
Git refusing to merge unrelated histories on rebase
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
| git pull origin master --allow-unrelated-histories | |
| git merge origin origin/master | |
| ... add and commit here... | |
| git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cd existing_folder
git init
git remote add origin https://gitlab.com/repo.git
git add .
git commit -m "Initial commit"
git push -u origin master