GitHub - jdevfullstack-tutorials/git-install: basic Git installation for VSCode
Repository navigation
git-installPublic
About
basic Git installation for VSCode
Resources
Readme Activity Custom propertiesStars
0 starsWatchers
1 watchingForks
1 fork Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
2 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| README.md | README.md | ||
Repository files navigation
Basic Git Installation
-
Install Git in Windows, go to Source Control of VSCode and click Download Git for Windows
-
or go to this https://git-scm.com/download/win
-
select Windows either 32/64 bit depending on your System
-
follow the steps, mostly click Next by default except VSCode as the editor instead of Vim
-
Go back to VSCode Source Control Tab or Reload it, you can start clean by opening a new VSCode Window
-
Open Terminal, New Terminal
-
at the Terminal on the bottom right of your screen, select type of terminal, click Git Bash
-
on your terminal
cd Desktopor any other location you want/required by the project likehtdocs, then clone a existing repo on GitHubgit clone "the remote repo -
open a New Folder on VSCode and select the one you just cloned
-
start editing,
git add .,git commit -m "message",git push -
the first time you push, it will fail the authentication, go to VSCode Settings search for
git.terminalAuthenticationand uncheck the option -
git push again, there will be a pop-up to authorize authenticating Git via your browser, make sure the active browser is logged in to GitHub
GitHub Desktop
Once you learned Git basics, it's better to use GitHub Desktop, it's a Git UI version, because you can see exactly the files that have changed and those you will be committing and in actual development, mostly you will be using branches to control the changes like you can sumbit a PR first
you may want to take a look at this
https://github.com/jdevstatic/my-github-desktop-commit-workflow
or simply use the basic Source Control of VSCode
About
basic Git installation for VSCode