<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: git bash commands for Windows not working. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/14006941#M4901977</link>
    <description>it works for me, thanks</description>
    <pubDate>Tue, 04 Feb 2025 14:52:09 GMT</pubDate>
    <dc:creator>DanielAltenhofen</dc:creator>
    <dc:date>2025-02-04T14:52:09Z</dc:date>
    <item>
      <title>git bash commands for Windows not working.</title>
      <link>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaq-p/12769654</link>
      <description>&lt;P&gt;Hello fellow developers,&lt;/P&gt;
  &lt;P&gt;I have downloaded and installed git for Windows 10 64-bit from &lt;A href="https://git-scm.com/downloads"&gt;Git - Downloads (git-scm.com)&lt;/A&gt; but some commands like cp or grep do not work. Does anyone have an idea why and how I can work around this? &lt;/P&gt;
  &lt;P&gt;Is there a Windows equivalent of cp -r .gitignore $(ls -1A | grep -v .git) ../cpapp that will work in git BASH for Windows?&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Leila &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 19:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaq-p/12769654</guid>
      <dc:creator>damovand</dc:creator>
      <dc:date>2023-07-28T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: git bash commands for Windows not working.</title>
      <link>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/12769655#M4793853</link>
      <description>&lt;P&gt;Hello Leila,&lt;/P&gt;&lt;P&gt;Just to clarify, cp and grep are not git commands, they're unix commands. However, GIT Bash has ported some Unix commands to Windows, which allows you to use them on windows if you have Git Bash installed .&lt;/P&gt;&lt;P&gt;The reason you might be experiencing issues is that these commands are located in a specific path inside the installation folder for Git Bash. In my case, I installed it to E:\Program Files. If you navigate to that directory and then go to usr/bin, you'll find the executables for cp, grep, and many others:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2194482-image.png" /&gt;&lt;/P&gt;&lt;P&gt;If you want those commands to work in your windows console regardless of the directory you're in, you must add the directory to the windows path:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2194483-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Once you do that, restart your windows console and the commands should be available.&lt;/P&gt;&lt;P&gt;If you're not sure how to add a path to the windows path, here's a quick tutorial you can follow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/" target="test_blank"&gt;https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By the way, if you're planning to follow SAP's CAP tutorials, I highly recommend using Business Application Studio (BAS) on BTP instead of a local Vscode installation. BAS already includes everything you need to start working without spending too much time on installing or troubleshooting tools. To get you started with BAS for CAP, here are some useful tutorials:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAS Setup for the first time in your BTP trial Account:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/appstudio-onboarding.html" target="test_blank"&gt;https://developers.sap.com/tutorials/appstudio-onboarding.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a dev space for CAP programming and your first application:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html" target="test_blank"&gt;https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/12769655#M4793853</guid>
      <dc:creator>Epena</dc:creator>
      <dc:date>2023-07-28T20:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: git bash commands for Windows not working.</title>
      <link>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/12769656#M4793854</link>
      <description>&lt;P&gt;Hello Edgar,&lt;/P&gt;&lt;P&gt;Thank you very much for the great information. You are right, I checked my directory under program files, and strangely all the paths for the tools I installe (e.g. node.js and even Git\cmd) were added except for the path to usr/bin.  I added it and now I can find the commands.&lt;/P&gt;&lt;P&gt;Thank you also for the additional information about bash.  I am familiar with bash as a command line language for Unix/Linux OS.  However, these days I only have access to Windows which is why I have to add them when I need them.  &lt;/P&gt;&lt;P&gt;Thank you again for your help and the excellent information.  &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/12769656#M4793854</guid>
      <dc:creator>damovand</dc:creator>
      <dc:date>2023-07-28T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: git bash commands for Windows not working.</title>
      <link>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/14006941#M4901977</link>
      <description>it works for me, thanks</description>
      <pubDate>Tue, 04 Feb 2025 14:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/git-bash-commands-for-windows-not-working/qaa-p/14006941#M4901977</guid>
      <dc:creator>DanielAltenhofen</dc:creator>
      <dc:date>2025-02-04T14:52:09Z</dc:date>
    </item>
  </channel>
</rss>

