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

Handle initial commit #5

Open
dtaniwaki opened this issue Apr 10, 2019 · 1 comment
Open

Handle initial commit #5

dtaniwaki opened this issue Apr 10, 2019 · 1 comment

Comments

@dtaniwaki
Copy link
Contributor

If a user creates a repository in local and make commits and modifications, then use git-ghost to run his code in remote, git-ghost cannot find the base commit because he hasn't pushed it to a remotely available location.
It's very useful if git-ghost can handle such a case.

@dtaniwaki
Copy link
Contributor Author

You can get the content of first commit by git show --pretty=format:%b --binary $(git rev-list --max-parents=0 HEAD). We may need enhance the patch method to save and load first commits in ghost repos. Maybe, we can save it with the name of first-commit and the following commits as commits.patch, then load the first commit and patch with the commits.

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

1 participant