You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: