Link Search Menu Expand Document

Remote » Local

Basic command to get started

Cloning repo in to PC folder

git clone

Using SSH or HTTP > * git fetch

git fetch ssh://


git checkout FETCH_HEAD -- index.html

Fetch first

You may see error message like this:

! [rejected]        gh-pages -> gh-pages (fetch first)
error: failed to push some refs to ''

Under the same directory, do:

git remote add origin
    #You might see this: error: remote origin already exists.
    #Ignore and run the next command
git pull origin gh-pages