You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+68-10Lines changed: 68 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,20 +39,78 @@ manages projects with repositories, which are like secret hideouts for your code
39
39
GitHub isn't Git, but it's like its trusty sidekick. It takes Git to the next level with a whole suite of tools and features. Owned by the mighty Microsoft, GitHub is the ultimate hub for all things code, hosting millions of repositories from developers worldwide.
40
40
41
41
So, there you have it! Get ready to dive into the exciting world of Git and GitHub, where coding dreams become reality.
42
-
## Git Install
42
+
## What is Repository.
43
+
In the world of programming and software development, a repository is an essential tool that serves as a central location for storing and managing code. It not only houses the source code but also tracks changes, manages versions, and facilitates collaboration among developers. Let's delve into the intricacies of what a repository is and why it's indispensable in modern software development.
44
+
45
+
46
+
# Git Install in Your System
43
47
44
-
You can download Git for free from the following website: [https://www.git-scm.com/](https://www.git-scm.com/)
45
-
## Check your git version
48
+
Setting up Git in your system for use with Visual Studio Code is essential for efficient version control and collaboration. Here's a straightforward guide to help you get started.
46
49
47
-
To check your git version, you can run the following command:
50
+
### Step-by-Step Instructions
48
51
52
+
1. Install Git
53
+
-**Windows** : Download and install from Git for [Windows](https://www.git-scm.com/).
54
+
-**Mac** : Use Homebrew with brew install git or download from Git for [Mac](https://git-scm.com/download/mac).
55
+
-**Linux** : Install via package manager, e.g., `sudo apt-get install git` for Debian-based distributions.
56
+
57
+
2. Verify Git Installation
58
+
Open your terminal or command prompt and run:
49
59
```cmd
50
60
git --version
51
61
```
52
-
62
+
You should see the installed Git version.
53
63
This command will display the version of git installed on your system. Git is a very stable software and don’t get any breaking changes in majority of the cases, at least in my experience.
54
-
## What is Repository.
55
-
In the world of programming and software development, a repository is an essential tool that serves as a central location for storing and managing code. It not only houses the source code but also tracks changes, manages versions, and facilitates collaboration among developers. Let's delve into the intricacies of what a repository is and why it's indispensable in modern software development.
Download and install from [Visual Studio Code](https://code.visualstudio.com/).
78
+
79
+
5. Install Git Extension in VS Code
80
+
Open VS Code.
81
+
Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window.
82
+
Search for "GitLens" and install it for enhanced Git capabilities.
83
+
# Initialize folder into Git Repository.
84
+
- Create a folder and open in vs code.
85
+
- Open the terminal in VS Code.
86
+
- Initialize a new Git repository:
87
+
```cmd
88
+
git init
89
+
```
90
+
- check status of the foldres an files.
91
+
92
+
```cmd
93
+
git status
94
+
```
95
+
96
+
## Commit
97
+
98
+
99
+
commit is a way to save your changes to your repository. It is a way to record your changes and make them permanent. You can think of a commit as a snapshot of your code at a particular point in time. When you commit your changes, you are telling git to save them in a permanent way. This way, you can always go back to that point in time and see what you changed.
0 commit comments