Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. git is not working in QT creator terminal with bash
Forum Updated to NodeBB v4.3 + New Features

git is not working in QT creator terminal with bash

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 205 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srinath_ramamoorthy
    wrote on last edited by
    #1

    C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
    /bin/bash: line 1: git: command not found

    C:_data\projects\test>git --version
    git version 2.41.0.windows.3

    JonBJ JoeCFDJ 2 Replies Last reply
    0
    • S srinath_ramamoorthy

      C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
      /bin/bash: line 1: git: command not found

      C:_data\projects\test>git --version
      git version 2.41.0.windows.3

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @srinath_ramamoorthy
      I would test what your PATH is in the bash -c ... command. Since it's "git: command not found" I imagine git is not on the PATH.

      Also in the second case we cannot tell from what shown that you are definitely inside bash. It juts looks like a Windows prompt and command, nothing to do with bash.

      1 Reply Last reply
      2
      • S srinath_ramamoorthy

        C:_data\projects\test>bash -c "git describe --tags --abbrev=8 --dirty --always --match """
        /bin/bash: line 1: git: command not found

        C:_data\projects\test>git --version
        git version 2.41.0.windows.3

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @srinath_ramamoorthy
        try to use the full path
        bash -c "/usr/bin/git describe --tags --abbrev=8 --dirty --always --match """

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved