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

How to use ghp-import and the full repository #128

Open
kwbln opened this issue Feb 20, 2024 · 2 comments
Open

How to use ghp-import and the full repository #128

kwbln opened this issue Feb 20, 2024 · 2 comments

Comments

@kwbln
Copy link

kwbln commented Feb 20, 2024

Hi there,
I have a github repository that I use for a JupyterBook. It is alraedy available and the ghp-imports works fine.
The question ist: how can I oush the complete folder to the same repository?
When I try to "activate" the main branch using git checkout main, git tells me that merges are needed what doesn't make sense for me since my local folder has the lead in that moment.
I'm a bit worried about damaging my local files.
I would appreciate some help. Thanks!
Best,
Kerstin

@c-w
Copy link
Owner

c-w commented Feb 20, 2024

Could you provide the full sequence of commands that you're using.

@kwbln
Copy link
Author

kwbln commented Feb 21, 2024

I followed the instructions here: https://jupyterbook.org/en/stable/start/publish.html

In the first round, I pushed the whole repository as described in the article.
Then I made some changes in the Jupyter Notebooks, for example, updated the new JupyterBook, and pushed the book changes using ghp-import.
The question is: how to proceed now?
I can make changes in the book and push them using ghp-import, but when I try to push the repo, starting with changing the branch, the info about needed merges come up.
Should I start with a new repo and always push the whole repo first and the use ghp-import?

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