, git merge ( @Wikiti , ), , .
, , git reset .
This is not perfect, and I recommend that any git specialists or gitlab staff offer the best solutions. In the hope that this will help others who are trying to move away from the branch gh-pages, this is how I did it:
git checkout master
git checkout -b master-docs
git merge gh-pages
git reset src/
git checkout src/
git reset any-other-master-files
git checkout any-other-master-files
vi .gitignore
git add .gitignore
vi any-other-conflicting-files
git add any-other-conflicting-files
mkdir docs
git mv *.md docs/
git mv *.html docs/
git mv _posts docs/
git mv _layout docs/
git mv any-other-gh-pages-files docs/
git status
git commit
git push -u master-docs
(The result does not look bad )
source
share