-
Notifications
You must be signed in to change notification settings - Fork 11
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
Sync fork #27
Comments
Yes... this is confusing. Books that were added to the master after I forked, do not appear in my fork, Nor do the changes that others have made. Hopefully we are not working on the same texts, haha. If I were to re-sync the master with my fork, all the pending commits in my fork would be overwritten, so I dare not do that. I'm wondering if GitHub is the best place for this? |
Okay, so I'm still relatively new to Git, but here's my tentative answer to this issue. The short answer is that, as long as you are careful, I don't think re-syncing with the original repository will overwrite your pending commits. I think Git is smart enough to merge in changes others have made without getting rid of the changes you have made, especially if you have been working on different files. If you happen to have been working on the same part of the same file, Git will create conflict messages that you will have to resolve, but it shouldn't automatically overwrite anyone's changes. (That being said, it might be worth having some kind of signup page, perhaps on the main repository's GitHub wiki, where people can let everyone know which books are currently being worked on and avoid creating conflicts.) The long answer is that I don't think GitHub's GUI software is advanced enough to let you sync your fork with the original repository, so you will have to do a few things from the command line. Before I continue, let me offer this disclaimer: I haven't actually tried the following steps, so take everything with a grain of salt. It would be great if someone with more experience with Git could make sure this is actually the right thing to do. That being said, I'm basically just taking this from GitHub's help pages, so as far as I can tell it should work. Okay, here we go:
If you do end up with conflicts, you can see how to resolve them here. So, those are my two cents. I hope it was helpful. I don't think anyone will loose any work, but like I said, I haven't actually tried any of this. It might be a good idea to make a backup of your changed files first, just in case. (Or, try creating a new branch of your fork to try syncing/merging with first. But that's its own can of worms.) |
Luke, How do we make sure our forks stay in sync with your master?
The text was updated successfully, but these errors were encountered: