statisticsnorway / kvakk-git-tools

Repo for sharing recommended git config and git scripts in Statistics Norway
MIT License
2 stars 0 forks source link

Suppress git clone output #31

Closed Andilun closed 1 year ago

Andilun commented 1 year ago

The git clone output was cluttering the users terminal with the print below. This PR suppress output from git clone command.

Cloning into 'kvakk-git-tools'...
remote: Enumerating objects: 429, done.
remote: Counting objects: 100% (127/127), done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 429 (delta 74), reused 87 (delta 53), pack-reused 302
Receiving objects: 100% (429/429), 185.66 KiB | 1.84 MiB/s, done.
Resolving deltas: 100% (218/218), done.
Note: switching to 'c252c633856edde84fdda8664eb5199cc113ac01'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

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

A new /home/jovyan/.gitconfig created successfully.
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication