Skip to content

Much simpler and faster way to create a bundle from the first not pushed commit #40

@maraf

Description

@maraf
git bundle create <remote_name>..<local_reference_name>

Eg.

git bundle create origin..i40-faster-bundle-creation

This doesn't work if repo contains a branch named "origin".

Alternative:

git rev-parse $(git log HEAD --not --remotes=origin --pretty=format:%H | tail -n 1)^

"Find all not pushed commits in 'origin' starting from HEAD, take the last one and than find the parent".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions