Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security Toolsconpot v1.0.0(21.09.2026 um 07:32 Uhr)
IT Security ToolsZircolite v4.0.0(21.09.2026 um 08:27 Uhr)
IT Security NachrichtenWaterPlum Hackers Steal $10.7M in Crypto From IT Workers(21.09.2026 um 08:52 Uhr)
Sicherheitslücken (CVE)Die größte Schwachstelle sitzt am Schreibtisch - kommunal.at(21.09.2026 um 07:36 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 08h : 6 posts(21.09.2026 um 08:00 Uhr)
IT Security Toolsconpot v1.0.0(21.09.2026 um 07:32 Uhr)
IT Security ToolsZircolite v4.0.0(21.09.2026 um 08:27 Uhr)
IT Security NachrichtenWaterPlum Hackers Steal $10.7M in Crypto From IT Workers(21.09.2026 um 08:52 Uhr)
Sicherheitslücken (CVE)Die größte Schwachstelle sitzt am Schreibtisch - kommunal.at(21.09.2026 um 07:36 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 08h : 6 posts(21.09.2026 um 08:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Git and GitHub: A Beginner's Guide

Reagiere als Erste:r — dein Feedback zählt!

What is Git?

It is a free, open-source, version control system that tracks every change you make to your files. Think of it as a "save system" you literally have the ability to save multiple versions of your project.

Version control and it's importance

Also know as source control or revision control is a system of tracking and managing files (especially code) over time.

why is it essential?

  1. Safety net: you can quickly roll back to a prior functional version of your code if you make a mistake and ruin it.
  2. Collaborations: several people can simultaneously work on the same file. The system enables them to merge their modifications.
  3. Traceability: Each file modification is recorded with a timestamp, a description, and the individual's name.
  4. Experimentation: Ability to test out a new feature without affecting the main project, you can make a "branch"- a different copy of the code. If it succeeds, you merge it; if not you remove the branch.

How to push code on GitHub.

Step 1: Create a local repository

1

  • To initialize a new Git repository we use the command line below.
git init
  • To check the file you want to push, we use the command line below, note that the files will be shown in red
git status

  • The next step is to add the files to the folder, use the command line below;
git add .
  • Then check on the files status, it shows up in green to signify that they've been added. use the command line;
git status

  • Commit it locally, use the command line;
git commit -m "Project added"

  • Push code to the GitHub Repository: Copy the URL that is generated after creating a new repository on GitHub then use the command line below.
git remote add origin (then paste your URL)
  • The next step is to push your code to your GitHub, It will bring a pop up tab where you have to sign in to your GitHub Account.
git push origin master

7

  • Below is an image of the files on GitHub.

4

How to pull code from GitHub

step 1

  • Clone your repository by navigating to your repository and copying the link the paste it after the below command line on git bash
git clone 

1

After that navigate to the folder for directory command use the below command line:

cd Git-Assignment

step 2

  • create a new branch
git checkout -b update-name

I

step3

  • Open repository in your editor and change the name, in our case we will use Vscode. use the command line:
code .
  • add your changes and then check the status using the below command lines respectively;
git add .
git status

I

  • Navigate to your GitHub account for the pull request.

Ima
Imag

Track changes using Git

When tracking changes, you are telling Git to watch specific files and record their history at specific moments in time. There are 3 zones to track a file.

  1. Working directory : editing files on your laptop. Git sees them but isn't tracking them yet
  2. Staging area : Flagging the changes you want to include in your next save
git add
  1. Repository : Git takes a permanent snapshot of everything in the staging area
git commit

Sequence of commands

  • check what is currently happening. red files are untracked or modified. Git sees them but hasn't saved them.
git status
  • Adding files(staging).
git add
or to add everything at once
git add . 
  • The moment the change is officially tracked in Git's history.
git commit -m "brief description of what is changed"

Key Takeaways

Git status is your bestfriend. It is recommended to run it after every single command. It tells exactly which files are bein tracked and which ones are being ignored

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Git and GitHub: A Beginner's Guide

Thematisch verwandte Begriffe: GitHub, Beginners, Guide · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick