Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to pull changes from the repo to your local website #23

Closed
le4ker opened this issue Oct 5, 2015 · 7 comments
Closed

Document how to pull changes from the repo to your local website #23

le4ker opened this issue Oct 5, 2015 · 7 comments

Comments

@le4ker
Copy link
Owner

le4ker commented Oct 5, 2015

It's a pain to pull changes from this repo after you have published your website.

Let's make this experience less frustrating :)

@joariasl
Copy link
Collaborator

joariasl commented Oct 6, 2015

  1. First add remote repository if this is not added and working with the master branch:
    $ git checkout master
    $ git remote add panos https://github.com/PanosSakkos/personal-jekyll-theme.git
    (panos name is added by the origin is other primary repository)
  2. Pull request with rebase for not create a new commit:
    $ git pull --rebase panos master
    or (is equals)
    $ git fetch panos
    $ git rebase panos master
  3. Publish changes in our fork:
    $ git push origin master
    (In case of that origin is our fork repository)

If I have time I publish myself. I am busy with my degree work. Although my English is not very good.

@joariasl
Copy link
Collaborator

joariasl commented Oct 6, 2015

Best use "upstream" name for original repository instead of panos. :P

@le4ker
Copy link
Owner Author

le4ker commented Oct 6, 2015

But the idea is to document it (or provide a script) for users who have already forked a past checkpoint and they have added their own content.

For example, imagine the following scenario:

Imagine Alice, who forked { Personal } one month ago.
She replaced the content with hers, and she already has published posts, has her own _config.yml etc.

The goal is to make it very easy for Alice to integrate all the features and the bug fixes that we have in the repo (i.e.) today, into her website, without losing her content ;)

I'm busy to tackle this and I want first to fix issue #25.
So feel free to work in this issue in your free time! :)

@le4ker
Copy link
Owner Author

le4ker commented Oct 6, 2015

Added this guy 2d18f0a and used it to integrate the latest changes into my website and it worked.

The only caveat is that if there are you miss the site config changes, because this file contains user's data, plus (probably) new configuration features.
So when you actually use this script, you need to run a diff between the two site configs, and then migrate manually the newly added configuration options.

I will document it in the wiki as carefully as I can :)

@le4ker
Copy link
Owner Author

le4ker commented Oct 6, 2015

Added the documentation here.

Feel free to give me feedback on the steps from a user's perspective ;)

@le4ker le4ker closed this as completed Oct 6, 2015
@joariasl
Copy link
Collaborator

joariasl commented Oct 6, 2015

I make the gh-pages branch and modify this with my personal configuration. When I modify the main features I change to master branch and merge to gh-pages.
So I keep a clean code and I send a pull request.

@le4ker
Copy link
Owner Author

le4ker commented Oct 7, 2015

Sure, but you are doing this in order to contribute to the { Personal } repository.

My purpose was to help users who have downloaded { Personal } and put it in a different X.github.io repository (i.e.), and they want to pull the latest changes from the official { Personal } repository ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants