Using GitHub with VSCode

GitHub setup/Integration with VS code==>


1.  Download source release 2.23.0 for Windows from ==> https://git-scm.com/
    A)  install in ==> c:\program files\git
    B) deselect ==> windows explore integration
    c) now finish install process

2. meanwhile create new 'Portfolio' name  repository in github.com


3. VS Code => open terminal window (ctrl+`) and check the git version by ==> git --version

4. Your Identity-  The first thing you should do when you install Git is to ==> set your user name and email address.
A)  git config --global user.name "vikas576"
B)  git config --global user.email viks******@gmail.com

4. If you want to check your configuration settings, you can use the ==>  git config --list


 ******Upto this Git is installed into your VS Code and configured username and user email.*****



How to add project from GitHub to Local System ?

 Now we have to pull new  repository 'portfolio', which we have created earlier in GitHub

5. Type command in VS Code ==> ctrl+shft+p ==> git:clone
  A) enter repository url here ==> https://github.com/vikas576/portfolio
  B) enter local folder path where to import/pull git repository in your system.
  c) popup message will appear==> Would you like to open the cloned repository, or add it to the                current workspace? ==>  press open


 6. Git clone is ready at your system...

 7. but still last work is remainig ==> when you push to your project ==> synch your GitHub account.


*********    Now you can perform pull and push operation in your project     ************





How to add Existing project from Local System to GitHub New Repository(Create New Repository)?


1. Did you init a local Git repository, into which this remote is supposed to be added?
   A) Does your local directory have a .git folder?
   B) Try command==> git init

2. If recieving error ==> fatal: not a git repository (or any of the parent directories): .git
   please  follow the below command and ofcourse run in your terminal.

A) echo "# DataStructures" >> README.md
B) git init
C) git add README.md
D) git commit -m "first commit"
E) git remote add origin https://github.com/vikas576/angular.git
F) git push -u origin master


or push  a project from local system  to an existing repository (already existing repository on github)

A) git remote add origin https://github.com/vikas576/angular.git
B) git push -u origin master

Comments

  1. The titanium hammer (buzz).
    (1918) titanium trimmer as seen on tv A classic, this version of the "M" titanium undertaker makes ford focus titanium hatchback for how to get titanium white octane an excellent hammer with the added twist. You can use the handle to cut down microtouch trimmer the

    ReplyDelete

Post a Comment

Popular posts from this blog

datatable with both top and bottom scroll bar.

Display Loader and disable page while waiting for ajax request

Invalid bean property or is not readable to loading Jsp page