Code Monkey home page Code Monkey logo

Comments (8)

j-f1 avatar j-f1 commented on July 17, 2024 2

You should be able to use the same Git repository in both GitHub Desktop and in your terminal, as long as you have Git installed separately.

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024 2

That wasn't the case for the old design version (I believe it installed full Git with the Desktop already).

The "Git Shell" experience was not ported over to Desktop Electron for multiple reasons. The discussion to read the back story on this is desktop#340

from desktop.

j-f1 avatar j-f1 commented on July 17, 2024

We don’t make the Git we use in the app available from the CLI because we apply some optimizations to it to decrease GitHub Desktop’s size that hinder usability. For example, we remove translations of text to languages other than English, because those translations take up space and make it harder to parse error messages.

from desktop.

Madis0 avatar Madis0 commented on July 17, 2024

So what would be the recommended procedure of executing direct git commands, without having to clone repositories twice?

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

@Madis0 as @j-f1 pointed out, the embedded version of Git is not intended for end-users to invoke directly. Please refer to your distribution's package manager for how to obtain Git.

I'm going to mark this as an enhancement for an external contributor to make this experience better for Linux users to explain this message better.

I think all we need to do here is update is-git-on-path.ts to check that git is available on the user's PATH.

https://github.com/desktop/desktop/blob/e17d8a565c28760c781c18c652c95ebf0e196066/app/src/lib/is-git-on-path.ts#L9-L11

I think where should be usable here, similar to the checks we do for Windows.

https://github.com/desktop/desktop/blob/e17d8a565c28760c781c18c652c95ebf0e196066/app/src/lib/is-git-on-path.ts#L14-L32

from desktop.

Madis0 avatar Madis0 commented on July 17, 2024

Thanks again, I now tested it on Windows too and apparently it also prompts for install there.

That wasn't the case for the old design version (I believe it installed full Git with the Desktop already).

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

I'm working to get this merged upstream in desktop#4619, and I'll close this out when we've published a new update containing the fix.

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

This was released in 1.2.0.

from desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.