Skip to content

Git Bash unresponsive after Do you agree to all the source agreements terms? [Y] Yes [N] No:  #2013

Closed

Description

Hello,
I am starting out in software development - please don't crucify me if I don't know the basics!

I have been trying to cache my GitHub credentials in Git. I am trying to install Git CLI with Bash

winget install --id GitHub.cli

I'm getting the following prompt:
Do you agree to all the source agreements terms?
[Y] Yes [N] No:

The problem is that I can't find a way to answer this! I have tried Yes, Y, y and even no but each time the cursor just jumps to a new line when I press enter. How do I accept this and get over this part?

Activity

  1. ghost added
    Needs-Triage
    on Mar 10, 2022
  2. denelon commented on Mar 10, 2022

    @denelon
    Collaborator

    Which Terminal are you using? Is it CMD or Windows Terminal?

    For a "work around", you can append "--acceptSourceAgreements" to accept the agreement from the "msstore" source. It's checked the first time you connect to get the list of packages from a source with agreements. You can also append "--acceptPackageAgreements" to accept any package level agreements. Those also come from the "msstore" source. In this case, the GitHub.cli package is not coming from the "msstore" source so:

    winget install GitHub.cli --acceptSourceAgreements should work.

    The prompt is looking for "Y" so when that is prompted, you should be able to type "Y" and then press [Enter].

  3. added
    Issue-Bug
    and removed
    Needs-Triage
    on Mar 10, 2022
  4. mburde7 commented on Jun 24, 2022

    @mburde7

    I believe you have to run the install command in your command prompt, not your git bash

  5. AndrewB-S commented on Jul 11, 2022

    @AndrewB-S

    I believe you have to run the install command in your command prompt, not your git bash

    This solved my issue.

  6. Trenly commented on Oct 21, 2022

    @Trenly
    Contributor

    This is actually a Known Issue in Git-for-windows

    Some console programs, most notably non-MSYS2 Python, PHP, Node and OpenSSL, interact correctly with MinTTY only when called through winpty (e.g. the Python console needs to be started as winpty python instead of just python).

    Calling winget --wait will cause the same unresponsiveness, but calling winpty winget --wait works as expected. In fact, the default aliases file for Git Bash contains a section on apps that require a win32 console -

    case "$TERM" in
    xterm*)
            # The following programs are known to require a Win32 Console
            # for interactive usage, therefore let's launch them through winpty
            # when run inside `mintty`.
            for name in node ipython php php5 python2.7
            do
                    case "$(type -p "$name".exe 2>/dev/null)" in
                    ''|/usr/bin/*) continue;;
                    esac
                    alias $name="winpty $name.exe"
            done
            ;;
    esac
    
    /d/Program Files/Git/etc/profile.d/aliases.sh [unix] (22:10 20/10/2022)   

    By opening the file in a text editor and adding winget after the list of names, closing and then reopening git bash, it should work as expected (Leaving this here as a note for time travellers)

  7. Trenly commented on Mar 15, 2023

    @Trenly
    Contributor

    This issue should be resolved with Git For Windows version 2.40.0.

    See git-for-windows/build-extra#483 and microsoft/winget-pkgs#99577

  8. modified the milestones: v1.5-Client, on Apr 18, 2023
  9. modified the milestones: , v1.5-Client on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions