manage the gitconfig #4

Open
opened 2024-09-07 22:44:01 +10:00 by unkinben · 1 comment
Owner

Turn off this advice by setting config variable advice.detachedHead to false

`Turn off this advice by setting config variable advice.detachedHead to false`
Author
Owner

This is to prevent the following message from showin in builds

2024-09-07T12:28:29.0322789Z cd /workspace/ProxLB && git checkout v1.0.2
2024-09-07T12:28:29.0408936Z Note: switching to 'v1.0.2'.
2024-09-07T12:28:29.0409423Z 
2024-09-07T12:28:29.0409870Z You are in 'detached HEAD' state. You can look around, make experimental
2024-09-07T12:28:29.0410134Z changes and commit them, and you can discard any commits you make in this
2024-09-07T12:28:29.0410258Z state without impacting any branches by switching back to a branch.
2024-09-07T12:28:29.0410377Z 
2024-09-07T12:28:29.0410500Z If you want to create a new branch to retain commits you create, you may
2024-09-07T12:28:29.0410614Z do so (now or later) by using -c with the switch command. Example:
2024-09-07T12:28:29.0410869Z 
2024-09-07T12:28:29.0411259Z   git switch -c <new-branch-name>
2024-09-07T12:28:29.0411523Z 
2024-09-07T12:28:29.0411707Z Or undo this operation with:
2024-09-07T12:28:29.0411925Z 
2024-09-07T12:28:29.0412048Z   git switch -
2024-09-07T12:28:29.0412172Z 
2024-09-07T12:28:29.0412273Z Turn off this advice by setting config variable advice.detachedHead to false
2024-09-07T12:28:29.0412437Z 
2024-09-07T12:28:29.0412543Z HEAD is now at 143135f Merge pull request #50 from gyptazy/release/v1.0.2
This is to prevent the following message from showin in builds ``` 2024-09-07T12:28:29.0322789Z cd /workspace/ProxLB && git checkout v1.0.2 2024-09-07T12:28:29.0408936Z Note: switching to 'v1.0.2'. 2024-09-07T12:28:29.0409423Z 2024-09-07T12:28:29.0409870Z You are in 'detached HEAD' state. You can look around, make experimental 2024-09-07T12:28:29.0410134Z changes and commit them, and you can discard any commits you make in this 2024-09-07T12:28:29.0410258Z state without impacting any branches by switching back to a branch. 2024-09-07T12:28:29.0410377Z 2024-09-07T12:28:29.0410500Z If you want to create a new branch to retain commits you create, you may 2024-09-07T12:28:29.0410614Z do so (now or later) by using -c with the switch command. Example: 2024-09-07T12:28:29.0410869Z 2024-09-07T12:28:29.0411259Z git switch -c <new-branch-name> 2024-09-07T12:28:29.0411523Z 2024-09-07T12:28:29.0411707Z Or undo this operation with: 2024-09-07T12:28:29.0411925Z 2024-09-07T12:28:29.0412048Z git switch - 2024-09-07T12:28:29.0412172Z 2024-09-07T12:28:29.0412273Z Turn off this advice by setting config variable advice.detachedHead to false 2024-09-07T12:28:29.0412437Z 2024-09-07T12:28:29.0412543Z HEAD is now at 143135f Merge pull request #50 from gyptazy/release/v1.0.2 ```
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unkin/docker-almalinux-base#4
No description provided.