[Angular] 006 Adding Git to VS Code IDE
///// Integrating GitLab with VS Code /////
*Steps:*
1. Install Git on your machine. Setup can be downloaded from this site.
https://git-scm.com/downloads
2. Create a global/cloud git repo on GitLab.
https://gitlab.com/
Create a project on GitLab. It will automatically create a git repo for that project.
3. Create a local git repo on your machine.
i. Open your Angular project in VS Code.
ii. Open command pallet. (ctrl+shift+P)
iii. Git: Initialize Repository
iv. Select your Angular-project-folder as your workflow folder.
It should then start showing .git hidden folder in your workspace folder.
4. Link your local git repo (which is on your machine) with your global/cloud git repo (which is on GitLab).
i. Again open the command pallet. (ctrl+shift+P)
ii. Git: Add Remote
iii. Enter your GitLab repository's name.
E.g.: Angular
iv. Enter your GitLab repository's URL.
E.g.: https://gitlab.com/aspire-crisptutorials/angular.git
v. Login with your GitLab credentials.
Now, you'll start seeing your default branch (master) in the bottom left corner of VS Code IDE (as the left-most item on the footer).
5. Commit and Push your changes.
i. Stage your changes.
ii. Commit your changes to your local Git repository.
iii. If you're asked to configure git user name and password, then do the following:
* Open your local Git repository in any terminal based window (like VS Code * Terminal or CMD or GitBash).
* Run these commands to save configurations to the local-git repo's workspace:
git config user.name "Amit Shirasao"
git config user.email "amit.shirasao@gmail.com"
* Or to save user name and email globally for all git repositories on your user, run these commands in any folder from a terminal based window.
git config --global user.name "Amit Shirasao"
git config --global user.email "amit.shirasao@gmail.com"
* Or to save user name and email at sytem level, run these commands in any folder from a terminal based window.
git config --system user.name "Amit Shirasao"
git config --system user.email "amit.shirasao@gmail.com"
iii. Besides your branch name, you'll now see a sync icon with zero changes to be pulled and one change to be pushed. Press this button to push your changes onto the cloud repository.
6. More branches can be created by clicking on the branch name being shown on the footer.
7. Publish your branch to the remote git repository. For this, click on the publish icon which you'll find besides your branch name.
8. Git configuations are at three cascading levels:
Local (Repo level) (Highest Priority)
Global (User level) (Medium Priority)
System (Machine level) (Lowest Priority)
To see the location of these files, just run this command in any terminal based window.
git config --edit
git config --edit --global
git config --edit --system
================== CONTACT ME =================
Mobile: +91 9158851250
Address: F-102 Sanskriti Society, Kaspate Wasti, Wakad, Pune 411057
================ LEGAL DISCLAIMER ==============
This video is an intellectual property of Mr. Amit Shirasao. Views expressed on this video are his personal views. Any of his previous/current/future employers or organizations that he may be affiliated with do not, in any way, take any responsibility for the same.
Aspire as a brand and channel along with all the videos posted under it are an intellectual property of Mr. Amit Shirasao. Aspire - Crisp Tutorials brand and channel is a subsidiary of Aspire brand and channel. So, by definition, every video posted under Aspire - Crisp Tutorials is also an intellectual property of Mr. Amit Shirasao.
Views expressed in any video under Aspire are strictly the personal views of the creator of the video. Creator of the video is the person whose name is mentioned in the video's thumbnail and on the very first screen which comes just after the intro. Please note that Mr. Amit Shirasao is not necessarily the creator of every video on Aspire and hence does not take responsibility of the views expressed in the videos which he did not create.
Please note that besides owning and running Aspire, Mr. Amit Shirasao may also be employed by some other company. Any past, present or future employers of Mr. Amit Shirasao does not in any way take any responsibility for this channel or the views expressed on it.
Other Videos By Amit Shirasao is my name.
2020-03-01 | 03 Parent gets display: flex |
2020-03-01 | 02 Building a basic project using Flexbox |
2020-03-01 | 01 Why Flexbox? |
2020-02-09 | 011 Topic 4 (Class Binding) and Topic 5 (Style Binding) |
2020-02-02 | 010 Topic 3 - Event Binding |
2020-01-31 | 009 Topic 2 - Property Binding |
2020-01-29 | 008 Topic 1 - String Interpolation |
2019-11-03 | [Angular] 007 How to use this course |
2019-11-03 | २० मिनिट में गाडी कैसे साफ़ करें? (Car Wash Tutorial) |
2019-08-01 | [DIY] 001 Water Purifier का filter कैसे replace करें |
2019-07-14 | [Angular] 006 Adding Git to VS Code IDE |
2019-07-07 | [Angular] 005 Git vs GitHub vs GitLab vs BitBucket |
2019-07-01 | [Angular] 004 Deployment to IIS |
2019-07-01 | [Angular] 003 Project Structure |
2019-06-28 | [Angular] 002 Hello World Program |
2019-05-15 | [Angular] 001 Machine Setup |
2019-02-06 | C# Ang7 - 006 Making the .NET WEB API |
2019-02-04 | C# Ang7 - 005 Making the UI layer in Angular 7 |
2019-02-02 | C# Ang7 - 004 Sample User Story |
2019-02-02 | C# Ang7 - 003 Dev Machine Setup |
2019-02-02 | C# Ang7 - 001 Understanding the Client's Requirement |