Visual Studio Code - Git Integration
-
How do you integrate git with Visual Studio Code on Windows?
I have installed Visual Studio Code and it ask for git to be installed, so I installed git but I can't figure out how to get them integrated.
I assume you can commit, push, pull, etc all from VS code?
I googled, but sadly I didn'tr find anything.
-
You can, but I never do. I just use GIT manually. I should probably stop doing that.
-
@scottalanmiller That's how I use them now as well, but I want to see if I can get it integrated
-
@aaronstuder said in Visual Studio Code - Git Integration:
How do you integrate git with Visual Studio Code on Windows?
I have installed Visual Studio Code and it ask for git to be installed, so I installed git but I can't figure out how to get them integrated.
I assume you can commit, push, pull, etc all from VS code?
it works totally fine. I save a workspace on a folder. Clone the Git through the Terminal and then fetch it
-
I installed the following Extensions to make it nicer
My History shows correctly as my github
I also setup automatic pull and push below:
-
Much of my Commits, push, pull, checkouts are done manually on the terminal
-
@dbeato said in Visual Studio Code - Git Integration:
Much of my Commits, push, pull, checkouts are done manually on the terminal
Yeah, I can do that as well, I was just wondering if you can set it up to press a button to push, pull, etc.
-
Also, I didn't realize you can run the terminal right from VS code. That's sweet!
-
Git integration is native and built in assuming it is installed on your OS to begin with.
-
Install GIT for Windows and it will just work in VSCode.
I do it all via VSCode, rarely manually.
I have left ALT+1 to commit, ALT+2 to push, ALT+3 to pull. I have commit automatically stage changes.
So when I'm coding, I CTRL+S to save, ALT+1, then ALT+2. Takes 5 seconds, so easy.
-
You will want the "Git Extension Pack" by Don Jayamanne. (also, various extensions to better support the languages you're coding in)
Also, the "Settings Sync" extension by Shan Khan is excellent if you use VSCode on multiple devices.
-
@Obsolesce Thanks!