How to install git on Windows Subsystem for Linux?Windows Subsystem for Linux (WSL): what can't I do with the Ubuntu application for Microsoft Windows?(12.04 vm/server) Dist-upgrade to 3.2.0-63 wants to remove git (1.9.2) and git-core - is that the correct behavior?Error get while installing ardupilot on virtualbox ubuntu 14.04.3Running gnome-keyring on WSL (Windows Subsystem for Linux)Windows Subsystem for Linux gedit errorWindows Subsystem for Linux display Linux distribution?git kdiff3 on Ubuntu subsystemUnable to update ebtables on WSLHow to remove docker from Windows subsystem?

Get a name removed from a manuscript as co-author

What causes standard door hinges to close up to a certain amount automatically?

Is sleeping on the ground in cold weather better than on an air mattress?

Translation Golf XLVIII — We're sorry to see you go

'Cheddar goes "good" with burgers?' Can "go" be seen as a verb of the senses?

Type and strength of a typical chain

Why is matter-antimatter asymmetry surprising, if asymmetry can be generated by a random walk in which particles go into black holes?

What is this dial on my old SLR for?

Little Endian Number to String Conversion

From Plate to State

When two weapon fighting, can a battle master use a manoeuver on the attack action and another on the bonus action attack?

UK PM is taking his proposal to EU but has not proposed to his own parliament - can he legally bypass the UK parliament?

How can I make "acts of patience" exciting?

How does one prove L'Hôpital's rule?

What is the most damage one can do with a cantrip in one turn?

What is the pattern to appear in the box?

Is It Possible to Make a Virus That Acts as an Anti-virus?

Reference request: Long-term behaviour of the heat equation for bounded initial data

Why did Batman design Robin's suit with only the underwear without pants?

Does Windows 10 Fast Startup feature drain battery while laptop is turned off?

Why is coffee provided during big chess events when it contains a banned substance?

D&D Monsters and Copyright

How could "aggressor" pilots fly foreign aircraft without speaking the language?

What are the different ways one can refer to the home in everyday French



How to install git on Windows Subsystem for Linux?


Windows Subsystem for Linux (WSL): what can't I do with the Ubuntu application for Microsoft Windows?(12.04 vm/server) Dist-upgrade to 3.2.0-63 wants to remove git (1.9.2) and git-core - is that the correct behavior?Error get while installing ardupilot on virtualbox ubuntu 14.04.3Running gnome-keyring on WSL (Windows Subsystem for Linux)Windows Subsystem for Linux gedit errorWindows Subsystem for Linux display Linux distribution?git kdiff3 on Ubuntu subsystemUnable to update ebtables on WSLHow to remove docker from Windows subsystem?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using



sudo apt-get install git


but the result is:



~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git


Some suggestions?










share|improve this question





















  • 2





    Did you run apt-get update yet?

    – Thomas Ward
    Apr 18 at 18:58

















0

















As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using



sudo apt-get install git


but the result is:



~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git


Some suggestions?










share|improve this question





















  • 2





    Did you run apt-get update yet?

    – Thomas Ward
    Apr 18 at 18:58













0












0








0


1






As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using



sudo apt-get install git


but the result is:



~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git


Some suggestions?










share|improve this question














As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using



sudo apt-get install git


but the result is:



~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git


Some suggestions?







git windows-subsystem-for-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question



share|improve this question










asked Apr 18 at 18:55









Leos313Leos313

3971 gold badge2 silver badges16 bronze badges




3971 gold badge2 silver badges16 bronze badges










  • 2





    Did you run apt-get update yet?

    – Thomas Ward
    Apr 18 at 18:58












  • 2





    Did you run apt-get update yet?

    – Thomas Ward
    Apr 18 at 18:58







2




2





Did you run apt-get update yet?

– Thomas Ward
Apr 18 at 18:58





Did you run apt-get update yet?

– Thomas Ward
Apr 18 at 18:58










1 Answer
1






active

oldest

votes


















0


















You might need to add the package first:



sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git





share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135023%2fhow-to-install-git-on-windows-subsystem-for-linux%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0


















    You might need to add the package first:



    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install git





    share|improve this answer






























      0


















      You might need to add the package first:



      sudo add-apt-repository ppa:git-core/ppa
      sudo apt-get update
      sudo apt-get install git





      share|improve this answer




























        0














        0










        0









        You might need to add the package first:



        sudo add-apt-repository ppa:git-core/ppa
        sudo apt-get update
        sudo apt-get install git





        share|improve this answer














        You might need to add the package first:



        sudo add-apt-repository ppa:git-core/ppa
        sudo apt-get update
        sudo apt-get install git






        share|improve this answer













        share|improve this answer




        share|improve this answer



        share|improve this answer










        answered Apr 18 at 18:59









        HugoHugo

        9358 silver badges21 bronze badges




        9358 silver badges21 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135023%2fhow-to-install-git-on-windows-subsystem-for-linux%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü