Skip to content

Instantly share code, notes, and snippets.

@sarvar
Created December 13, 2018 07:18
Show Gist options
  • Save sarvar/140082936963fc2bfdb7997aa2373e25 to your computer and use it in GitHub Desktop.
Save sarvar/140082936963fc2bfdb7997aa2373e25 to your computer and use it in GitHub Desktop.
Git refusing to merge unrelated histories on rebase
git pull origin master --allow-unrelated-histories
git merge origin origin/master
... add and commit here...
git push origin master
@sarvar
Copy link
Author

sarvar commented Dec 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment