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 208 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 8 Aug 2023, 15:44 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

    J J 2 Replies Last reply 8 Aug 2023, 15:55
    0
    • S srinath_ramamoorthy
      8 Aug 2023, 15:44

      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

      J Offline
      J Offline
      JonB
      wrote on 8 Aug 2023, 15:55 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
        8 Aug 2023, 15:44

        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

        J Offline
        J Offline
        JoeCFD
        wrote on 8 Aug 2023, 18:35 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

        1/3

        8 Aug 2023, 15:44

        • Login

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