-
Notifications
You must be signed in to change notification settings - Fork 22
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
Include all previous git history #1
Comments
Hi David! Hi!I've been tracking your plugin on vim.org in github and I have git history for all previous versions.Would you consider pulling in my history? is the master in your branch at the time I pulled in your changes.git checkout -b history 0513f5f see that there are no significant differencesgit diff history idbrii/master This is the only "dangerous" part, but we're in a new branch, so it's safe.git reset --hard idbrii/master Now if you have any new changes since I pushed, you can reapply them on top.git rebase history |
I edited my original instructions a bit. For simplicity, if you just want to grab my history and haven't made any recent changes, you can just do this:
Also, I think once you do that, github will realize that our two repos (and everyone else who cloned vim-scripts) are the same project and we can automatically do pull requests. |
Hi David,
To: qpkorr/vim-bufkill [email protected] Hi!I've been tracking your plugin on vim.org in github and I have git history for all previous versions.Would you consider pulling in my history? is the master in your branch at the time I pulled in your changes.git checkout -b history 0513f5f see that there are no significant differencesgit diff history idbrii/master This is the only "dangerous" part, but we're in a new branch, so it's safe.git reset --hard idbrii/master Now if you have any new changes since I pushed, you can reapply them on top.git rebase history |
Ah, right. I missed a final step:
As I said, the "reset --hard" is the dangerous part and we have to force push because we did that. Git rejects pushes that use a different history than what's already in the destination repo. But since we're trying to use history that's shared by me and other vim-scripts cloners, that's what we want.
Do a pull before any of these steps to ensure your local master is up to date. (I assumed whatever you have locally more up to date than what's on github.) Since we have to do |
Thanks David - hopefully both my repos are looking a little better for you now - next step, I guess I'll need to learn about pull requests ;) Ah, right. I missed a final step:git push --force origin master — |
I looked around and it seems that the only way you can receive pull requests if by being part of the same network. Since @vim-scripts created the one with all the history, many people have cloned it (including myself). So you have two choices:
Re-cloning from one in the existing network doesn't require you to change your local git history. You're just changing what's on github. You will lose anything that's not in the repo: wiki, issues, pull request history. Since your repos are still new, I think that just means this issue, and I'm okay with that if you are. To re-clone: Delete this repo, clone from mine (which includes your head), then add your new github repo as a remote in your local git. My bufkill and renamer repos have master branches that match your repos. If you want to test it out, you can do the above steps without deleting this repo and if everything looks good then delete this repo and rename your new one. Github supports renaming pretty well in my experience. Another caveat is your repo will now say "forked from". I don't know if you can remove that without disconnecting from the network. Maybe you want to fork from vim-scripts and push your changes instead? This article suggested contacting Github support. I've never talked to them, so I don't know how accommodating they are. |
I don't really understand the vim-scripts repo's intent. They took a snapshot of the vimscripts scripts from vim.org at some point - but do they update them? If a script changes on vim.org (as mine have), how is this change meant to be propagated to the vimscripts repo? I figure there needs to be some mechanism? Do vimscripts just accept all pull requests - I don't understand how the model is intended to work, so I'm unsure how I should use it, and whether I should. Is there documentation on the process that you've found? I found none during a quick look. I looked around and it seems that the only way you can receive pull requests if by being part of the same network. Since @vim-scripts created the one with all the history, many people have cloned it (including myself).So you have two choices:
— |
Hi, the intent was to allow pathogen / vundle / vim-update-bundles to be able to install plugins directly. Now (5 years later), most plugin authors have moved to github and there's much less of a need for the vim-scripts mirror. Yes, it keeps up-to date: https://github.com/vim-scripts?tab=activity One or two repos are skipped but nobody's dug in to figure out why. gmarik and I aren't interested in developing vim-scripts further but enough people are still using it that taking it down might be premature. Dunno. One of these days I intend to make a page explaining all this. :) |
Hi!
I've been tracking your plugin on vim.org in github and I have git history for all previous versions.
Would you consider pulling in my history?
https://github.com/idbrii/bufkill.vim/commits/qpkorr-master
If I
git diff 0513f5f cf928d3
(your repo at master and mine at qpkorr-master) and there's no difference.You can pull in my history like this:
Then you'll have history going back to v1.0
And then I can send you some pull requests for bug fixes.
(Edit: I removed my redundant README in my branch and renamed it to qpkorr-master. I've added more information for rebasing your history.)
The text was updated successfully, but these errors were encountered: