Download visual studio code: https://code.visualstudio.com/
Download Git: https://git-scm.com/
Create account in Github: https://github.com/
1- Open Git Bash terminal and type four following commands:
git config — global user.name "type your name here"
git config — global user.email "typeyour@email.com"
git config — global push.default matching
git config — global alias.co checkout

To see if you did this right, you can type:
git config — global user.name
git config — global user.email
2- Access the integrated terminal (git) in visual studio code
Click New terminal and Change terminal default to git


select git bash

3-Create a repository in the root of your project
Type on git bash: git init

update any file in Project

4- Go to the Source Control Section of visual studio code

Untracked files are newly created project files that are yet to be staged.
Stage changes

Commit changes

5- Create a new repository on Github
create account, then create repository

Copy the repository

6- Add a remote
Go back to Visual Studio Code → Click View → Click integrated terminal →
Run the command: git remote add origin [ paste your repository url ]
To check if it worked, type git remote -v and it should be pointing to your repository like so:

7- Publish your project to Github

You will be prompted to log in your github account credentials → Enter credentials
Then
Go back to Github → Scroll down →On the right sidebar, under Your Repositories, click your project name, You should see this:

8- Push anytime Changes..
Anytime you make a change, use Push
staged changes Then Commit Then Push

If you want to review changes Go to Source Control section and Review changes by click on files changes


5- Create a new repository on Github
create account, then create repository

Copy the repository

6- Add a remote
Go back to Visual Studio Code → Click View → Click integrated terminal →
Run the command: git remote add origin [ paste your repository url ]
To check if it worked, type git remote -v and it should be pointing to your repository like so:

7- Publish your project to Github

You will be prompted to log in your github account credentials → Enter credentials
Then
Go back to Github → Scroll down →On the right sidebar, under Your Repositories, click your project name, You should see this:

8- Push anytime Changes..
Anytime you make a change, use Push
staged changes Then Commit Then Push

If you want to review changes Go to Source Control section and Review changes by click on files changes
