Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

gh-pages not orphan #51

Closed
groud opened this issue Feb 21, 2016 · 18 comments
Closed

gh-pages not orphan #51

groud opened this issue Feb 21, 2016 · 18 comments

Comments

@groud
Copy link
Contributor

groud commented Feb 21, 2016

The gh-pages branch has nothing to do with the master branch.
It should a be an orphan branch.

https://help.github.com/articles/creating-project-pages-manually/

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

I've followed a similar page about creating pages manually, and that did not mention an orphan branch but just said to clone the master and remove everything else from it and add the site related stuff.
I think the only difference is that now there's a link between them I suppose. Can I change that now that I already created the branch?
I'm not familar with the command line tool either so I would've needed to find a way to do that in the site UI or in source tree.

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

I dont think there is a possibility for doing this without deleting the branch.
If you dont mind, I can handle this :)

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

I did already delete it and now I can't create an orphan branch (in source tree I'm using the terminal):
screenshot11
This should be it, right? But neither on the gihub site nor in Source tree I can find that branch...

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

Awesome, i think you need to push the initial commit to see it into Github.

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

How if I can't see the branch? :(

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

Well, if you deleted the branch, you have to:

Create the new orphan branch:
git checkout --orohan gh-page
(You are now locally on the gh-page branch)

Delete all files on this branch:
git rm -rf .

Add all your documentation documents (index.html, ...), then:
git add ./*
and commit:
git commit -m "Initial commit"

Then finally, push the new branch:
git push origin gh-page

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

Tried that too but the only message I got was
screenshot12
Note I'm back on master

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

You forgot the point :)
The point means "current directory"

Get back to gh-pages using:
git checkout gh-page
and then continue with the git rm -rf . command

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

Hm, ok got it working until the commit. After git push origin gh-pages He asked for the name, I entered it, then for the password, and even though I entered it nothing has showed up. nyway, after clicking enter I saw an error, when i tried to checkout gh-pages I saw another error:
screenshot13
Any idea?

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

Can you run :
git branch -l
and paste the result ?

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

only develop, master (current) and Unity Func feature

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

But I have a local push now how I named it in the console
It is targeted to the master branch though

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

I do not get whet you mean by "local push".
Can you get into the master branch and run
git status

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

I removed it and did everything all over again. Now I'm here:
cmdline-orphanbranchcreation
I would enter my name and then password, but this doesn't work (see screens above)

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

Ok I got it in SourceTree locally. But without entering the password I cannot put it in remote.

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

Finally! it is online! ;)
It did work this time after entering the password, he did push it to the remote repo.
http://baste-raingames.github.io/Node_Editor/

@groud
Copy link
Contributor Author

groud commented Feb 21, 2016

Yes sorry, I forgot one argument in the command line. I think:
git push -u origin gh-pages

Awesome !

@Seneral
Copy link
Owner

Seneral commented Feb 21, 2016

It did work without, but somehow it didn't even create it locally I think. Anyways, time to move on. Thanks!

@Seneral Seneral closed this as completed Feb 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants