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

Detached head #18

Open
tokejepsen opened this issue Aug 7, 2017 · 0 comments
Open

Detached head #18

tokejepsen opened this issue Aug 7, 2017 · 0 comments

Comments

@tokejepsen
Copy link
Owner

Goal

Repositories should not end up in detached head mode.

Motivation

Working with repositories in detached head mode, can become cumbersome because the commits are not immediately available in most git GUIs.

Implementation

Checking out commits on branches can be done with the latest commit on the branch. This is almost never the case, as locking an environment will most likely make it older than the most current commit, we'll need an implementation for checking out older commits.
The only command for checking out older commits is to hard reset a branch to a commit. This has the potential for loosing data.
The other option is to generate a branch when checking out. The biggest problem here is having a unique branch, which could be solved by naming the branch by the commit id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant