Translate

New Live Courses

🚀 *Gen AI Engineer Telugu (Production Focused)*
🗓️ *Date:* 30th Sept 2026, 07:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/gr
👥 *Join WA Community:*
https://www.vlrt.in/gw
💡*Course Content:*
https://www.vlrt.in/ai
▶️ *Demo Videos:*
https://www.vlrt.in/gv

🚀 *Service now Admin/ Development (ITSM)FREE Demo in Telugu*
🗓️ *Date:* 30th Sept 2026, 08:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/7r
👥 *Join WA Community:*
https://www.vlrt.in/7w
💡*Course Content:*
https://www.vlrt.in/7c
▶️ *Demo Videos:*
https://www.vlrt.in/7v

🚀 *Vulnerability Management Training Demo*
🗓️ *Date:* 30th Sept 2026, 09:00 AM IST
📝*Register Now!:*
https://www.vlrt.in/vr
👥 *Join Community:*
https://www.vlrt.in/cw
💡 *Course Content:*
https://www.vlrt.in/vc
▶️ *Demo Videos:*
https://www.vlrt.in/Vm

Friday, 9 January 2026

What is " Blended Threat " in Cyber Security

 In cybersecurity, a Blended Threat is a sophisticated type of attack that combines multiple malicious techniques and exploit methods into a single, coordinated assault. Unlike a traditional virus or worm that uses one method to spread, a blended threat "blends" various elements—such as social engineering, malware, and server-side exploits—to maximize damage and speed of infection.

Think of it as the "Swiss Army Knife" of cyberattacks; it has multiple tools (vectors) to ensure that if one defense blocks one path, the attack can still succeed through another.


🛠️ The Anatomy: How It Works

A blended threat typically operates across three distinct phases, often without requiring any human interaction once launched:

  1. Multiple Entry Points: It might arrive via an email attachment (phishing), exploit a vulnerability in a web browser (drive-by download), and scan for open ports on a server simultaneously.

  2. Propagation (Spreading): Once inside, it behaves like a Worm, automatically scanning the local network for other vulnerable machines to infect without waiting for a user to click anything.

  3. Payload Execution: After spreading, it might drop a Trojan to steal data, install Ransomware to encrypt files, or turn the infected computer into a "zombie" for a DDoS attack.


🌟 Key Characteristics

  • Speed: Because they use multiple ways to spread (email, network sharing, web exploits), they can infect global networks in hours.

  • Stealth: They often use "low and slow" techniques for parts of the attack while using a loud DDoS attack as a distraction.

  • Automation: Most blended threats are designed to be self-sufficient, requiring no manual intervention to replicate.

  • Hard to Detect: Traditional antivirus software looking for a single signature often misses blended threats because the attack is fragmented across different files and processes.


📂 Detailed Examples

1. The Classic: Code Red (2001)

One of the first famous blended threats. It exploited a specific vulnerability in Microsoft IIS web servers.

  • The Blend: It used Worm capabilities to spread itself to other servers automatically, but it also contained a payload designed to launch a DDoS attack on the White House website.

2. The Modern: Sophisticated Ransomware (e.g., Ryuk or Conti)

Modern ransomware is rarely "just" a file encryptor. It is a full-scale blended attack:

  • Step A (Phishing): An employee receives a fake invoice.

  • Step B (Trojan/Backdoor): Clicking the link installs a Trojan (like Emotet) that stays quiet and steals credentials.

  • Step C (Worm/Lateral Movement): The malware uses those credentials to spread to the company's backup servers and domain controllers.

  • Step D (Payload): Finally, it exfiltrates (steals) sensitive data and then triggers the ransomware to lock everything.

3. Nimda (2001)

Nimda remains the "textbook" example of a blended threat because it used five different ways to spread:

  • Email (as an attachment).

  • Open network shares.

  • Infecting web servers.

  • Scanning for backdoors left by previous viruses (like Code Red).

  • Infecting website visitors through browser vulnerabilities.


🛡️ How to Defend Against Blended Threats

Because these attacks are multi-layered, your defense must be as well:

Defense LayerPurpose
Endpoint Detection (EDR)Monitors for "behavioral" anomalies rather than just known virus signatures.
Network SegmentationStops the "worm" component from spreading from one department to another.
Patch ManagementCloses the software "holes" (vulnerabilities) that the threat uses to enter.
Security AwarenessTrains users to spot the social engineering/phishing part of the blend.

సైబర్ సెక్యూరిటీలో "బ్లెండెడ్ థ్రెట్" (Blended Threat) అనేది ఒక అత్యంత ప్రమాదకరమైన దాడి. ఇది కేవలం ఒక్క పద్ధతిలో కాకుండా, వివిధ రకాల మాల్వేర్ పద్ధతులను (వైరస్‌లు, వార్మ్‌లు, ట్రోజన్ హార్స్, మరియు సోషల్ ఇంజనీరింగ్) కలిపి ఒకేసారి దాడి చేస్తుంది.

సాధారణంగా ఒక వైరస్ కేవలం ఫైళ్లను నాశనం చేస్తే, బ్లెండెడ్ థ్రెట్ ఒకే సమయంలో నెట్‌వర్క్ ద్వారా వ్యాపిస్తుంది, డేటాను దొంగిలిస్తుంది మరియు సిస్టమ్‌ను హ్యాకర్ల నియంత్రణలోకి తీసుకుంటుంది. దీనిని సైబర్ దాడుల యొక్క "స్విస్ ఆర్మీ నైఫ్" అని పిలవవచ్చు.


🛠️ ఇది ఎలా పనిచేస్తుంది? (How It Works)

బ్లెండెడ్ థ్రెట్ సాధారణంగా మూడు దశల్లో పనిచేస్తుంది:

  1. మల్టిపుల్ ఎంట్రీ పాయింట్లు (Multiple Entry Points): ఇది కేవలం ఇమెయిల్ ద్వారానే కాకుండా, వెబ్‌సైట్ విజిట్స్, సాఫ్ట్‌వేర్ లోపాలు (Vulnerabilities) మరియు నెట్‌వర్క్ పోర్ట్స్ ద్వారా ఒకేసారి ప్రవేశించడానికి ప్రయత్నిస్తుంది.

  2. వేగవంతమైన వ్యాప్తి (Propagation): లోపలికి ప్రవేశించిన తర్వాత, ఇది ఒక వార్మ్ (Worm) లాగా పనిచేస్తుంది. యూజర్ ఏమీ చేయకపోయినా, నెట్‌వర్క్‌లో ఉన్న ఇతర కంప్యూటర్లకు ఆటోమేటిక్‌గా పాకుతుంది.

  3. నష్టం కలిగించడం (Payload Execution): నెట్‌వర్క్ అంతా వ్యాపించిన తర్వాత, ఇది డేటాను ఎన్‌క్రిప్ట్ చేయడం (Ransomware), సమాచారాన్ని దొంగిలించడం (Spyware) లేదా సర్వర్లను డౌన్ చేయడం వంటి పనులు చేస్తుంది.


🌟 ప్రధాన లక్షణాలు (Key Characteristics)

  • వేగం (Speed): ఇవి చాలా వేగంగా ప్రపంచవ్యాప్తంగా ఉన్న కంప్యూటర్లను ఇన్ఫెక్ట్ చేయగలవు.

  • గుర్తించడం కష్టం (Hard to Detect): ఇవి వేర్వేరు పద్ధతులను వాడుతుంటాయి కాబట్టి, సాధారణ యాంటీ-వైరస్ సాఫ్ట్‌వేర్లు వీటిని గుర్తించడం కష్టం.

  • ఆటోమేషన్ (Automation): మనిషి ప్రమేయం లేకుండానే ఇవి ఒక కంప్యూటర్ నుండి మరో కంప్యూటర్‌కు వెళ్లగలవు.


📂 వివరణాత్మక ఉదాహరణలు (Detailed Examples)

1. నిమ్డా (Nimda - 2001)

ఇది బ్లెండెడ్ థ్రెట్‌కు అత్యుత్తమ ఉదాహరణ. ఇది ఐదు రకాలుగా వ్యాపించింది:

  • ఇమెయిల్ ద్వారా.

  • నెట్‌వర్క్ షేరింగ్ ద్వారా.

  • వెబ్ సర్వర్ల ద్వారా.

  • వెబ్‌సైట్లను సందర్శించే యూజర్ల బ్రౌజర్ల ద్వారా.

  • మునుపటి వైరస్‌లు వదిలిన లోపాల ద్వారా.

2. ఆధునిక రాన్సమ్‌వేర్ (Modern Ransomware)

ప్రస్తుత కాలంలో వచ్చే Ryuk లేదా Conti వంటి రాన్సమ్‌వేర్లు బ్లెండెడ్ థ్రెట్‌లే.

  • మొదట: ఫిషింగ్ ఇమెయిల్ ద్వారా ఒక ట్రోజన్‌ను పంపిస్తారు.

  • తర్వాత: అది నెట్‌వర్క్ అంతా వ్యాపించి అడ్మిన్ పాస్‌వర్డ్‌లను దొంగిలిస్తుంది.

  • చివరగా: డేటా మొత్తాన్ని లాక్ చేసి (Encrypt), డబ్బులు అడుగుతుంది.


🛡️ రక్షణ చర్యలు (How to Defend)

బ్లెండెడ్ థ్రెట్స్ బహుళ మార్గాల్లో వస్తాయి కాబట్టి, మన రక్షణ కూడా బహుళ అంచెల్లో (Layered Defense) ఉండాలి:

రక్షణ పద్ధతివివరణ
Endpoint Detection (EDR)కంప్యూటర్లలో జరిగే అసాధారణ మార్పులను నిరంతరం గమనిస్తుంది.
Network Segmentationనెట్‌వర్క్‌ను భాగాలుగా విభజించడం వల్ల వైరస్ ఒక విభాగం నుండి ఇంకో విభాగానికి పాకదు.
Patch Managementసాఫ్ట్‌వేర్లను ఎప్పటికప్పుడు అప్‌డేట్ చేయడం ద్వారా హ్యాకర్లు వాడే లోపాలను సరిచేయవచ్చు.
User Awarenessఅనుమానాస్పద లింకులను క్లిక్ చేయకుండా ఉద్యోగులకు అవగాహన కల్పించడం.

What is " Blacklisting " in Cyber Security

 In cybersecurity, Blacklisting (also known as Blocklisting or Denylisting) is a security strategy that identifies specific entities—such as IP addresses, email addresses, domain names, or software applications—that are considered malicious or undesirable and blocks them from accessing a system.

The core principle of blacklisting is "Default Allow." This means that every person, file, or piece of data is allowed into the network unless they appear on the "naughty list."


How Blacklisting Works

Think of blacklisting like a security guard at a club with a "Banned List." The guard lets everyone in by default, but if someone shows up whose name is on that specific list, they are turned away.

  1. Identification: A security system detects suspicious behavior (e.g., an IP address trying to log in 500 times in one minute).

  2. Logging: That specific identifier is added to a database (the Blacklist).

  3. Comparison: Every time a new request comes in, the system checks the identifier against the list.

  4. Action: If a match is found, the connection is dropped or the file is blocked immediately.


Detailed Examples of Blacklisting

1. IP Blacklisting (Network Security)

Firewalls often use blacklists to block traffic from known "bad neighborhoods" of the internet.

  • Example: If a specific IP address is known to be part of a Botnet or used for DDoS attacks, a company’s firewall will automatically reject any data packets coming from that address.

  • Common Source: Many companies subscribe to live feeds like the Spamhaus Project, which provides real-time lists of malicious IP addresses.

2. Email Blacklisting (Spam & Phishing)

Email servers use blacklists to filter out spam before it reaches your inbox.

  • Example: If a domain like scam-emails.com starts sending millions of phishing links, email providers (like Gmail or Outlook) will blacklist that domain. Any future emails from that domain will go straight to the "Junk" folder or be deleted.

3. Application Blacklisting (Endpoint Security)

Organizations use this to prevent employees from running dangerous or unproductive software.

  • Example: An IT department might blacklist peer-to-peer (P2P) file-sharing apps (like BitTorrent) or known malware executables (like ransomware.exe). Even if a user tries to click the file, the operating system will block it because it’s on the blacklist.

4. URL/Domain Blacklisting (Web Browsing)

Web browsers like Chrome and Firefox use blacklists to protect you from "bad" websites.

  • Example: When you see a "Deceptive site ahead" red warning screen, it’s because Google’s Safe Browsing blacklist has flagged that URL for hosting malware or being a fake login page for a bank.


Blacklisting vs. Whitelisting

To understand blacklisting better, it helps to compare it to its opposite:

FeatureBlacklisting (Blocklist)Whitelisting (Allowlist)
PhilosophyEverything is safe until proven bad.Everything is dangerous until proven safe.
Default ActionDefault AllowDefault Deny
EffortLow (Only have to track known threats).High (Must identify every "good" thing).
Security LevelModerate (Weak against "Zero-day" attacks).Very High (Stops unknown threats).
User ExperienceSeamless; rarely blocks legitimate work.Restrictive; can block new tools/sites.

Pros and Cons

The Strengths

  • Ease of Use: It is much easier to manage than whitelisting because you only need to update the "bad" items.

  • Scalability: You can easily subscribe to global threat feeds that update your blacklist automatically.

  • Low Friction: It doesn't get in the way of users doing their jobs unless they try to visit something truly dangerous.

The Weaknesses

  • Reactive, Not Proactive: A blacklist only works if the threat is already known. If a hacker creates a brand-new virus (a Zero-day), it won't be on the blacklist yet, and the system will let it in.

  • Easy to Bypass: Attackers can easily change their IP addresses or domain names to "reset" their reputation and bypass the list.

  • False Positives: Sometimes legitimate websites or IPs get accidentally blacklisted, causing service disruptions.
       

సైబర్ సెక్యూరిటీలో "బ్లాక్‌లిస్టింగ్" (Blacklisting) — దీనిని ప్రస్తుతం 'బ్లాక్‌లిస్టింగ్' లేదా 'డినైలిస్టింగ్' అని కూడా పిలుస్తున్నారు — అనేది ఒక ముఖ్యమైన భద్రతా పద్ధతి. హానికరమైనవిగా గుర్తించిన IP అడ్రస్‌లు, వెబ్‌సైట్‌లు, ఈమెయిల్ ఐడీలు లేదా సాఫ్ట్‌వేర్‌లను మీ నెట్‌వర్క్‌లోకి రాకుండా నిరోధించడమే దీని ప్రధాన ఉద్దేశ్యం.

బ్లాక్‌లిస్టింగ్ యొక్క ప్రాథమిక సూత్రం "Default Allow". అంటే, నిషేధిత జాబితాలో లేని ప్రతి ఒక్కరినీ సిస్టమ్ అనుమతిస్తుంది.


బ్లాక్‌లిస్టింగ్ ఎలా పనిచేస్తుంది?

దీనిని ఒక ఉదాహరణతో అర్థం చేసుకుందాం: ఒక ఫంక్షన్ హాల్ బయట ఒక సెక్యూరిటీ గార్డు ఉన్నాడనుకోండి. అతని దగ్గర "అనుమతి లేని వ్యక్తుల జాబితా" ఉంది. ఆ జాబితాలో పేరు లేని ఎవరినైనా అతను లోపలికి పంపిస్తాడు. కానీ జాబితాలో పేరు ఉన్న వ్యక్తి రాగానే లోపలికి వెళ్లకుండా ఆపేస్తాడు.

సైబర్ సెక్యూరిటీలో కూడా ఇదే జరుగుతుంది:

  1. గుర్తింపు: ఏదైనా IP అడ్రస్ లేదా సాఫ్ట్‌వేర్ అనుమానాస్పదంగా ప్రవర్తిస్తే (ఉదాహరణకు: తప్పుడు పాస్‌వర్డ్‌తో వందల సార్లు లాగిన్ అవ్వడానికి ప్రయత్నించడం).

  2. జాబితాలో చేర్చడం: ఆ నిర్దిష్ట ఐడెంటిఫైయర్‌ను 'బ్లాక్‌లిస్ట్' డేటాబేస్‌లో చేరుస్తారు.

  3. తనిఖీ: నెట్‌వర్క్‌లోకి ఏదైనా డేటా వచ్చేటప్పుడు, అది బ్లాక్‌లిస్ట్‌లో ఉందేమో సిస్టమ్ తనిఖీ చేస్తుంది.

  4. నిరోధించడం: ఒకవేళ మ్యాచ్ అయితే, ఆ కనెక్షన్‌ను వెంటనే కట్ చేస్తుంది.


బ్లాక్‌లిస్టింగ్ రకాలు మరియు ఉదాహరణలు

1. IP బ్లాక్‌లిస్టింగ్ (IP Blacklisting)

హానికరమైన లేదా హ్యాకర్లకు సంబంధించిన IP అడ్రస్‌ల నుండి వచ్చే ట్రాఫిక్‌ను ఫైర్‌వాల్స్ నిరోధిస్తాయి.

  • ఉదాహరణ: ఏదైనా ఒక దేశం లేదా ప్రాంతం నుండి వరుసగా DDoS దాడులు జరుగుతుంటే, ఆ ప్రాంతానికి చెందిన IP అడ్రస్‌లను కంపెనీలు బ్లాక్ చేస్తాయి.

2. ఈమెయిల్ బ్లాక్‌లిస్టింగ్ (Email Blacklisting)

స్పామ్ మరియు ఫిషింగ్ మెయిల్స్ రాకుండా సర్వర్లు వీటిని వాడుతాయి.

  • ఉదాహరణ: scam-offers.com అనే డొమైన్ నుండి లక్షల కొద్దీ తప్పుడు మెయిల్స్ వస్తుంటే, Gmail లేదా Outlook ఆ డొమైన్‌ను బ్లాక్‌లిస్ట్‌లో పెడుతుంది. దీనివల్ల ఆ మెయిల్స్ నేరుగా 'స్పామ్' ఫోల్డర్‌లోకి వెళ్తాయి లేదా అసలు డెలివరీ కావు.

3. అప్లికేషన్ బ్లాక్‌లిస్టింగ్ (Application Blacklisting)

కంపెనీ కంప్యూటర్లలో ప్రమాదకరమైన లేదా పనికి సంబంధం లేని సాఫ్ట్‌వేర్‌లను వాడకుండా ఆపడం.

  • ఉదాహరణ: ఒక ఆఫీసులో ఉద్యోగులు గేమ్స్ లేదా వైరస్ ఉండే అవకాశం ఉన్న టోరెంట్ (Torrent) యాప్స్ వాడకుండా IT విభాగం వాటిని బ్లాక్ చేస్తుంది.

4. వెబ్‌సైట్/URL బ్లాక్‌లిస్టింగ్ (URL Blacklisting)

బ్రౌజర్లు (Chrome, Firefox) ప్రమాదకరమైన వెబ్‌సైట్ల నుండి మనల్ని కాపాడతాయి.

  • ఉదాహరణ: మీరు ఏదైనా వెబ్‌సైట్ ఓపెన్ చేసినప్పుడు ఎరుపు రంగులో "Deceptive site ahead" అని హెచ్చరిక వస్తే, గూగుల్ ఆ వెబ్‌సైట్‌ను తన బ్లాక్‌లిస్ట్‌లో చేర్చిందని అర్థం.


బ్లాక్‌లిస్టింగ్ vs వైట్‌లిస్టింగ్ (Comparison)

ఫీచర్బ్లాక్‌లిస్టింగ్ (Blacklisting)వైట్‌లిస్టింగ్ (Whitelisting)
విధానంచెడ్డ వాటిని మాత్రమే ఆపుతుంది.మంచి వాటిని మాత్రమే అనుమతిస్తుంది.
పనితీరుజాబితాలో లేనివన్నీ సేఫ్.జాబితాలో ఉన్నవి తప్ప అన్నీ డేంజర్.
సులభతరంనిర్వహించడం సులభం.నిర్వహించడం కష్టం (ప్రతిదీ అనుమతించాలి).
భద్రతమధ్యస్థంగా ఉంటుంది.అత్యధిక భద్రత ఉంటుంది.

లాభాలు మరియు నష్టాలు

లాభాలు:

  • తక్కువ ఖర్చుతో కూడుకున్నది మరియు సులభంగా సెట్ చేయవచ్చు.

  • తెలిసిన వైరస్‌లు మరియు హ్యాకర్ల నుండి వెంటనే రక్షణ ఇస్తుంది.

  • సాధారణ వినియోగదారులకు ఎటువంటి అంతరాయం కలగదు.

నష్టాలు:

  • Zero-day Attacks: కొత్తగా పుట్టుకొచ్చిన వైరస్‌ల గురించి ఇందులో సమాచారం ఉండదు, కాబట్టి అవి సిస్టమ్‌లోకి ప్రవేశించే అవకాశం ఉంది.

  • దాటవేయవచ్చు: హ్యాకర్లు తమ IP అడ్రస్‌లను లేదా డొమైన్ పేర్లను మార్చుకుంటూ బ్లాక్‌లిస్టింగ్ నుండి తప్పించుకోవచ్చు.

  • False Positives: పొరపాటున మంచి వెబ్‌సైట్లు లేదా ఈమెయిల్స్ కూడా బ్లాక్ అయ్యే అవకాశం ఉంది.

Tuesday, 6 January 2026

Stop Using Git Add & Commit Wrong 05

 Think of Git not just as a tool for saving files, but as a time machine for your code. To use this time machine effectively, you need to understand how Git tracks your work through different stages.

Stop Using Git Add & Commit Wrong


Here is a breakdown of the Git lifecycle and the two most important commands you'll use daily.


1. The Git Lifecycle (The Big Picture)

Git manages your project through three main sections (often called the "Three Trees" of Git). Understanding these is key to knowing why we use add and commit.

  1. Working Directory: This is your actual project folder on your computer. When you edit a file, the changes live here first.

  2. Staging Area (Index): This is a middle ground. Think of it as a "loading dock" where you gather all the changes you want to include in your next save point.

  3. Local Repository (HEAD): Once you "commit," the changes are permanently recorded as a version in your .git folder.


2. git add: Preparing Your Changes

The git add command moves changes from your Working Directory to the Staging Area.

It’s like picking out specific items to put in a box before you tape it shut. You might have changed ten files, but you only want to save three of them right now—git add lets you choose exactly which ones.

Examples:

  • Add a specific file:

    git add index.html

  • Add all files in the current folder:

    git add .

  • Add all files ending in .css:

    git add *.css


3. git commit: Saving the Snapshot

The git commit command (which you might have seen as "got commit" in some typos!) takes everything currently in your Staging Area and wraps it up into a permanent "snapshot" in the Local Repository.

Each commit gets a unique ID and a message describing what changed. This is your official save point.

Example:

git commit -m "Fix the navigation bar bug"

Pro Tip: Always use the -m flag to write a descriptive message. If you forget it, Git might open a complex text editor like Vim to force you to write one!


4. Summary Table

CommandActionWhere does the data go?
git addStagingWorking Directory $\rightarrow$ Staging Area
git commitRecordingStaging Area $\rightarrow$ Local Repository

Putting it all together: A Real-World Example

Imagine you are building a website and you just finished the "About Me" page and fixed a typo in the "Contact" page.

  1. Edit your files: You modify about.html and contact.html.

  2. Check status: You run git status. Git shows both files are "Modified" but not yet staged.

  3. Stage your work: You run git add about.html contact.html. Now they are in the "loading dock."

  4. Save your work: You run git commit -m "Complete About page and fix Contact typo".

Now, your work is safely tucked away in the repository. Even if you delete the files by accident, you can recover them from that commit!




గిట్ (Git) అనేది కేవలం ఫైల్స్ సేవ్ చేసే సాధనం మాత్రమే కాదు, ఇది మీ కోడ్ కోసం ఒక కాలయంత్రం (Time machine) లాంటిది. దీన్ని సరిగ్గా ఉపయోగించాలంటే, గిట్ మీ పనిని ఏయే దశల్లో ట్రాక్ చేస్తుందో మీరు అర్థం చేసుకోవాలి.

గిట్ లైఫ్ సైకిల్ మరియు దానిలోని ముఖ్యమైన కమాండ్స్ గురించి వివరణ ఇక్కడ ఉంది:


1. గిట్ లైఫ్ సైకిల్ (The Big Picture)

గిట్ మీ ప్రాజెక్ట్‌ను మూడు ప్రధాన విభాగాలుగా విభజిస్తుంది. వీటినే గిట్ యొక్క "త్రీ ట్రీస్" (Three Trees) అని కూడా అంటారు.

  1. వర్కింగ్ డైరెక్టరీ (Working Directory): ఇది మీ కంప్యూటర్‌లోని అసలైన ప్రాజెక్ట్ ఫోల్డర్. మీరు ఏదైనా ఫైల్‌ను ఎడిట్ చేసినప్పుడు, ఆ మార్పులు మొదట ఇక్కడే ఉంటాయి.

  2. స్టేజింగ్ ఏరియా (Staging Area / Index): ఇది ఒక మధ్యంతర దశ. మీరు తదుపరి 'సేవ్ పాయింట్'లో చేర్చాలనుకుంటున్న మార్పులన్నింటినీ ఒక దగ్గర చేర్చే "లోడింగ్ డాక్" (Loading dock) లాంటిది.

  3. లోకల్ రిపోజిటరీ (Local Repository): మీరు "కమిట్" చేసిన తర్వాత, మార్పులు మీ .git ఫోల్డర్‌లో ఒక వెర్షన్‌గా శాశ్వతంగా రికార్డ్ చేయబడతాయి.


2. git add: మార్పులను సిద్ధం చేయడం

git add కమాండ్ మీ వర్కింగ్ డైరెక్టరీ నుండి మార్పులను స్టేజింగ్ ఏరియాకు మారుస్తుంది.

ఉదాహరణకు, మీరు ఒక పెట్టెను ప్యాక్ చేసి టేప్ వేయడానికి ముందు, అందులో ఏయే వస్తువులు ఉండాలో ఎంచుకోవడం లాంటిది ఇది. మీరు 10 ఫైల్స్ మార్చి ఉండవచ్చు, కానీ ప్రస్తుతం కేవలం 3 ఫైల్స్ మాత్రమే సేవ్ చేయాలనుకుంటే.. ఆ మూడింటిని మాత్రమే git add ద్వారా ఎంచుకోవచ్చు.

ఉదాహరణలు:

  • ఒక నిర్దిష్ట ఫైల్‌ను యాడ్ చేయడానికి:

    git add index.html

  • ఫోల్డర్‌లోని అన్ని మార్పులను యాడ్ చేయడానికి:

    git add .

  • కేవలం .css ఫైల్స్ మాత్రమే యాడ్ చేయడానికి:

    git add *.css


3. git commit: స్నాప్‌షాట్‌ను భద్రపరచడం

git commit కమాండ్ స్టేజింగ్ ఏరియాలో ఉన్న వాటన్నింటినీ ఒక శాశ్వత 'స్నాప్‌షాట్' (Snapshot) గా మార్చి లోకల్ రిపోజిటరీలో భద్రపరుస్తుంది.

ప్రతి కమిట్‌కు ఒక ప్రత్యేక ఐడి (ID) మరియు మీరు చేసిన మార్పుల వివరణ (Message) ఉంటుంది. ఇదే మీ అధికారిక సేవ్ పాయింట్.

ఉదాహరణ:

git commit -m "నేవిగేషన్ బార్ బగ్‌ని సరిచేశాను"

చిట్కా: ఎల్లప్పుడూ -m ఫ్లాగ్ ఉపయోగించి వివరణాత్మక మెసేజ్ రాయండి. లేకపోతే, గిట్ 'Vim' వంటి కష్టమైన ఎడిటర్‌ను ఓపెన్ చేసి మిమ్మల్ని మెసేజ్ రాయమని బలవంతం చేస్తుంది!


4. సారాంశం (Summary Table)

కమాండ్పనిడేటా ఎక్కడికి వెళ్తుంది?
git addస్టేజింగ్ (Staging)వర్కింగ్ డైరెక్టరీ $\rightarrow$ స్టేజింగ్ ఏరియా
git commitరికార్డింగ్ (Recording)స్టేజింగ్ ఏరియా $\rightarrow$ లోకల్ రిపోజిటరీ

ఒక నిజజీవిత ఉదాహరణ:

మీరు ఒక వెబ్‌సైట్ నిర్మిస్తున్నారని అనుకుందాం. మీరు "About Me" పేజీని పూర్తి చేశారు మరియు "Contact" పేజీలో ఒక తప్పును సరిచేశారు.

  1. ఫైల్స్ ఎడిట్ చేయండి: మీరు about.html మరియు contact.html లో మార్పులు చేశారు.

  2. స్టేటస్ చెక్ చేయండి: git status రన్ చేస్తే, ఆ రెండు ఫైల్స్ "Modified" అని చూపిస్తాయి.

  3. స్టేజ్ చేయండి: git add about.html contact.html అని టైప్ చేయండి. ఇప్పుడు అవి "లోడింగ్ డాక్" (స్టేజింగ్ ఏరియా) లో ఉన్నాయి.

  4. సేవ్ చేయండి: git commit -m "About page పూర్తి చేశాను మరియు Contact typo సరిచేశాను" అని రన్ చేయండి.

ఇప్పుడు మీ పని రిపోజిటరీలో సురక్షితంగా భద్రపరచబడింది. ఒకవేళ పొరపాటున మీరు ఆ ఫైల్స్ డిలీట్ చేసినా, ఈ కమిట్ నుండి వాటిని తిరిగి పొందవచ్చు!