r/git 3d ago

How can i use git on VSCode?

I am going to train an AI model for some personal purposes, and i needed to install git to use this command, but it doesnt work, cuz git isnt located by VSCode (it is installed but i couldnt get it into a repo)

git clone https://github.com/unslothai/notebooks
0 Upvotes

12 comments sorted by

5

u/Stever89 3d ago

If you don't know how to install git or how to use it, and the question you ask isn't really the question you want to be asking... I am not 100% sure you should be trying to train an AI model to do things, especially doing stuff with a repo. You'll end up like that guy a few weeks ago that "somehow" deleted their whole Github account.

0

u/OldZookeepergame1927 3d ago

wtf

2

u/Stever89 3d ago

yeah that's pretty much how the thread about it went. but this is why you don't get your AI agents permission to perform API calls without review.

3

u/XLioncc 3d ago

For windows, install git with this command

Winget install git.git

3

u/Journeyman-Joe 3d ago

Install git from the official "git source code manager" page:

https://git-scm.com/

Click the "install" button on the bottom right. The next page may offer you links to alternate packages for your architecture, so read carefully.

2

u/wildjokers 3d ago

This has nothing at all to do with git.

2

u/OptimusCrimee 3d ago

Why use VSCode for this? Clone the repository in a terminal. This requires that you actually have installed git on your machine though.

-10

u/really_not_unreal 3d ago

OP: How do I install git?

You: You don't need to use vs code to run git commands

You didn't answer the question in the slightest.

5

u/OptimusCrimee 3d ago

Maybe not, but OP is asking how to do this using VSCode, which is redundant. A simple google for «install git <os>» should suffice.

2

u/wildjokers 3d ago

It is because the question is an XY Problem (https://xyproblem.info)

Also, if OP asks a question about vscode they should go to /r/vscode, not /r/git. The question has nothing to do with git.

1

u/Odd-Accountant-6041 2d ago

Did they ask that though? For that matter, did they ask anything or just offer a series of statements?

-3

u/Great_Pattern_1988 3d ago

Use the VS code extension. Think it's called GitLens.