PS C:\Users\c2c> git --version
git: The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ git --version
+ ~~~
+ CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
If you trying to run Git on PowerShell and you get the above error then make sure you re-run your Git-Bash Installation Setup to add the option to "Let git run from the command line or 3rd party tools", or simply add the Git path to the Path Environment Variable.
Git Setup - Adjust your path Environment
- In Search type "Edit Environment variable for your account",
- Click on "Environment Variables..." button,
- Under System Variables -> Path add: C:\Program Files\Git\cmd
- Click Ok and restart PowerShell.
Have Questions? Post them here!
More Posts related to Microsoft,
- Microsoft Office Excel - Couldnt Open the Workbook - The workbook cannot be opened.
- [Fix] Microsoft AADSTS900561: The endpoint only accepts POST requests. Received a GET request.
- Remove Possible Data Loss Message from Microsoft Excel
- [Fix] Cannot connect to Microsoft SQL Server, Error: 18456
- Microsoft Stream - This may not be for you, It looks like you don't have permission to watch this video
- How to fix Microsoft Windows 10 update error 80070020
- Outlook - The mailbox isn't available. This may have occurred because the license for the mailbox has expired.
- [Fix] Connect to Minecraft Remote Connect URL via https //aka.ms/remoteconnect
- AADSTS90033: A transient error has occurred. Please try again. [Microsoft 365]
- Fix Power Automate FLOW error - InvalidTemplate Unable to process template language expressions in action
- FCM Messages! Testing Notifcation from Microsoft to investigate this problem [Microsoft Teams]
- Remove mailto link from Microsoft 365 Word Document Email Text
- How to turn off Dark theme in Excel for Mac
- Microsoft Sign-in Error Code: 50058 (Request Id, Correlation Id and Timestamp)
- Fix 0x80070194 Error When Opening Microsoft OneDrive File
- [fix] Microsoft Error Code 0x80004005 - Unspecified error
- Fix - Microsoft Windows Error Code: 0xA00F4244 NoCamerasAreAttached
- Save a Notepad file as Microsoft Excel file
- MO229507 UK Europe users cannot access Microsoft 365 - SharePoint, OneDrive, Teams, Admin center, Planner, Yammer
- How to know file encoding in Microsoft Windows Notepad?
- How to save a file as csv in Windows Notepad?
- Microsoft Office Mac Ventura: System Settings must be changed before Microsoft AutoUpdate can run
- Fix Error CAA50021 - Number of retry attempts exceeds expectation - Microsoft 365 Apps
- Microsoft 365 Excel - PRO TIP Discover insights quickly with Power BI, which is already included in your Microsoft services, See it in action
- [Microsoft Teams 4c7] Modern authentication failed here, but you'll still be able to sign in. Your status code is 4c7 error
More Posts:
- Convert Java List to Json String using Jackson - Java
- How to find lost AirPods? - HowTos
- Truncate table using Java JDBC Example - Java
- Eclipse : Workspace was written with an older version of the product and will be updated - Eclipse
- Two Buttons next to each other in Android Layout - Android
- How to install Python Specific version (3.8, 3.9 or 3.10) using Brew - Python
- Check if String Contains a Substring - Python - Python
- No connection available Use Connect-SPOService before running this CmdLet - SharePoint