Windows 10: Terminal: Powershell vs Ubuntu: git status difference for PHP project

Discus and support Terminal: Powershell vs Ubuntu: git status difference for PHP project in Windows 10 BSOD Crashes and Debugging to solve the problem; I've just updated my installation of Windows terminal to 1.0. To test consistency I opened Terminal in my project directory and got these results:... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by truckeeGWB, May 19, 2020.

  1. Terminal: Powershell vs Ubuntu: git status difference for PHP project


    I've just updated my installation of Windows terminal to 1.0. To test consistency I opened Terminal in my project directory and got these results:


    Powershell:

    Terminal: Powershell vs Ubuntu: git status difference for PHP project a8baaf7d-d71a-484c-8376-76ec7321cddc?upload=true.jpg


    WSL/Ubuntu:

    Terminal: Powershell vs Ubuntu: git status difference for PHP project 4e01eb0f-a4fc-4837-9b41-4ccd1a32f1e6?upload=true.jpg


    Powershell shows git --version = 2.26.2.windows.1

    WSL shows git --version = 2.17.1


    I also have a Hyper-V VM of Ubuntu 18 with a clone of the project. It's git is also 2.17.1 but it shows:


    On branch master
    Your branch is up to date with 'origin/master'.

    nothing to commit, working tree clean


    So the difference in git status is not due to the version of git. Also, WSL & the VM report identical versions of Ubuntu 18.04.4 and both have just been updated & upgraded.


    The PHP project was developed in Netbeans. Netbeans version 11.x shows the project has nothing to commit. Netbeans 12.0-beta4 shows there are files are different from HEAD. The reason there is that the java git module has changed. Is that somehow a factor here in Windows Terminal?


    If not, why the difference in Terminal?

    :)
     
    truckeeGWB, May 19, 2020
    #1

  2. Ubuntu terminal not displaying git messages correctly

    Hi Patrick,



    Thank you for writing to Microsoft Community Forums.



    I understand that the output for Ubuntu terminal is not showing properly for GIT commands.



    I suggest you to try re-enabling Windows Subsystem for Linux and then uninstalling and re-installing Ubuntu from Microsoft Store. Follow the steps to disable Windows Subsystem for Linux and uninstall Ubuntu.



    Disable Windows Subsystem for Linux:



    1. Press Windows key + R. This will open
      Run. Alternatively, you can go to Start and search for Run.
    2. In Run dialog box, type
      appwiz.cpl
      and hit enter.
    3. Now on the left hand pane click on
      Turn Windows features on or off.
    4. Now on the Windows feature window scroll down and uncheck the box next to
      Windows Subsystem for Linux.
    5. Click on OK and Restart the PC.


    Uninstall the Ubuntu app:



    1. Go to Settings >
      Apps > Apps & features.
    2. Now search for Ubuntu app.
    3. Click on the app and click on
      Uninstall
      .
    4. Follow the onscreen instructions.


    To enable the Windows Subsystem for Linux you can refer the article

    Windows Subsystem for Linux Installation Guide for Windows 10
    .



    If the issue persists, I suggest you to post your query on

    TechNet forums
    as they have dedicated support for issues related to Windows Subsystem for Linux.



    Hope it helps.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, May 19, 2020
    #2
  3. Ubuntu terminal not displaying git messages correctly

    I have been using the Ubuntu terminal for Windows recently, and have just encountered a problem where outputs from git commands aren't displaying correctly.


    Terminal: Powershell vs Ubuntu: git status difference for PHP project 3308c8bb-cf8f-4ed3-8e53-801b73a2729b?upload=true.png


    Ubuntu terminal is on the left, and cmd on the right. As can be seen, the changes to be committed are not displaying. This is happening for any of the comands that print in that colour. I tried changing the colours but that isn't the problem.


    Terminal: Powershell vs Ubuntu: git status difference for PHP project 6b5c6b42-a59f-4bcd-bddf-f476f0615895?upload=true.png


    The colour supposedly being used for this is the 6th from the right.

    Any ideas?
     
    Patrick Jennings, May 19, 2020
    #3
  4. Terminal: Powershell vs Ubuntu: git status difference for PHP project

    zsh git status shows all files in repo as modified (when they are no )

    My setup: Windows 10, cygwin, miTTy and oh-my-zsh.

    Problem: when I get to a folder of a git repository it takes a long time (3-15 seconds) for the commandline to get to this folder. It depends on the size of the project.

    To speed it up I have uncommented this line: DISABLE_UNTRACKED_FILES_DIRTY="true" in .zshrc, which is supposed to make it faster. It didn't help at all. Then I found out that when I run git status it shows all the files in the repo as modified even though they are not (I have checked in PHPStrom and Git Bash terminal). I think that this might be the reason for why it's taking so long.

    I'm have just two active plugins: git and extract.

    Any ideas how to fix it and/or make zsh run as fast as possible?
    Thanks for your time and suggestions Terminal: Powershell vs Ubuntu: git status difference for PHP project :)
     
    Tony Vlcek, May 19, 2020
    #4
Thema:

Terminal: Powershell vs Ubuntu: git status difference for PHP project

Loading...
  1. Terminal: Powershell vs Ubuntu: git status difference for PHP project - Similar Threads - Terminal Powershell Ubuntu

  2. how to disable swap in windows 10 ubuntu terminal

    in Windows 10 Software and Apps
    how to disable swap in windows 10 ubuntu terminal: How can I disable swap in windows10 ubuntu terminal? top - 18:51:22 up 6:30, 0 users, load average: 0.52, 0.58, 0.59 Tasks: 4 total, 1 running, 3 sleeping, 0 stopped, 0 zombie %Cpus: 4.1 us, 8.8 sy, 0.0 ni, 86.5 id, 0.0 wa, 0.6 hi, 0.0 si, 0.0 st KiB...
  3. CMD, PowerShell, Windows Terminal

    in Windows 10 Ask Insider
    CMD, PowerShell, Windows Terminal: I have recently returned to windows after 10 years of OSX/MacOS and Linux. During my time on these OSes I became very comfortable with using the terminal on a daily basis for minor tasks to system configuration and diagnostics. I loved the power these tools have and wish to...
  4. Ubuntu terminal not displaying git messages correctly

    in Windows 10 Software and Apps
    Ubuntu terminal not displaying git messages correctly: I have been using the Ubuntu terminal for Windows recently, and have just encountered a problem where outputs from git commands aren't displaying correctly. [ATTACH] Ubuntu terminal is on the left, and cmd on the right. As can be seen, the changes to be committed are not...
  5. git gui

    in Windows 10 Network and Sharing
    git gui: Somehow git-gui has been installed on my windows 10 system. It has installed its commands into the file explorer menu. It is failing on an SSL call. I get the following error message fatal: unable to access 'https://github.com/dfl1955/xxxxxxx.git/': error:1407742E:SSL...
  6. Git for Cortana

    in Windows 10 Software and Apps
    Git for Cortana: I think that just Git is not enough. Who thinks anybody would use Git for Cortana "Clone <username/repository> to my computer" "Commit <file> to <username>s repository <repository>" "Create a new issue about <???>" ^ Examples By the way does dis support MD...
  7. Microsoft Brings PowerShell to the Ubuntu Snap Store

    in Windows 10 News
    Microsoft Brings PowerShell to the Ubuntu Snap Store: “Snaps are great because they provide a single package format that works across many Linux distributions, much like how PowerShell acts as a single automation platform across operating systems,” enthuses Joey Aiello, Program Manager of PowerShell at Microsoft....
  8. Selenium server terminates with Unexpected status SERVICE_PAUSED

    in Windows 10 Software and Apps
    Selenium server terminates with Unexpected status SERVICE_PAUSED: Attempts to install Selenium Server as a service (using nssm) in Windows 10 fail with Unexpected status SERVICE_PAUSED on nssm start selenium-server Selenium is selenium-server-standalone-2.53.0.jar. nssm is 2.24. OS is Windows 10, 1511, 32-bit. Event viewer says...
  9. Different kinds of Powershell?

    in Windows 10 Support
    Different kinds of Powershell?: I've recently used Powershell, but there appear to be several different versions of this utility. Some of them work--some of them merely report not being able to find something or call up something else. For instance, when I call up Powershell from an elevated command prompt,...
  10. cmd vs powershell

    in Windows 10 Support
    cmd vs powershell: Greetings. As a normal PC-geek I don't know how, when and why I should use Powershell instead of cmd. Or in another way, why has Microsoft changed cmd to Powershell in the right-click menu? What are the benefits? Or has Microsoft just done this to make fun of us, that...