🪟 Windows TippsModify Windows Support Phone Number with PowerShell(03.09.2026 um 00:00 Uhr)
🔧 AI Nachrichten Podcast: ChatGPT schwatzt Nutzern in Deutschland jetzt Werbung auf(28.08.2026 um 08:46 Uhr)
🪟 Windows TippsMicrosoft bringt Emoji 17.0 auf Windows 11(31.08.2026 um 08:16 Uhr)
🪟 Windows TippsModify Windows Support Phone Number with PowerShell(03.09.2026 um 00:00 Uhr)
🔧 AI Nachrichten Podcast: ChatGPT schwatzt Nutzern in Deutschland jetzt Werbung auf(28.08.2026 um 08:46 Uhr)
🪟 Windows TippsMicrosoft bringt Emoji 17.0 auf Windows 11(31.08.2026 um 08:16 Uhr)

🔧 Programmierung 🕛 vor 2 Jahren 5 Min Lesezeit
0

All You Need to Know: Popular Tools for Git and GitHub

↗ Quelle (dev.to)
🗣️ Stimme:

The provided content is a detailed guide that covers various aspects of using Git for version control. It includes instructions for setting up user configurations, initializing a Git repository, managing remotes, adding files, making commits, checking changes, viewing commit logs, pushing to existing repositories, creating new repositories, cloning, pulling, branching, undoing commits, stashing changes, merging branches, and counting commits.



This guide is likely to be helpful for users who are new to Git and GitHub or those looking for a comprehensive reference for common Git commands and workflows. It provides step-by-step instructions along with explanations for each command, making it accessible for users at different skill levels.



If the goal is to help users employ version control effectively, this guide can be a valuable resource as it covers a wide range of Git-related tasks commonly encountered in software development projects. The inclusion of links to additional resources at the end adds to the completeness of the guide.






GIT Download url:




CODE
# “git init” no need: if you have a git folder in your project … file named “.get”
$ git init
$ git remote add origin [email protected]:<USERNAME>/<REPO_NAME>.git
$ git add .
$ git commit -m "<YOUR_COMMIT>"
$ git push -u origin main

# ------- OR

$ git remote add origin [email protected]:<USERNAME>/<REPO_NAME>.git
$ git add .
$ git commit -m "<YOUR_COMMIT>"
$ git push -u origin main









How to Create a New Repository and Push the project (GitHub):




  • Open GitHub and create a new repo from “Repositories”:
    Image description








CODE
$ git init
# change from master branch to main branch
$ git branch -M main
$ touch README.md # optional
$ git add README.md # optional
$ git add .
$ git commit -m "first commit"
$ git remote add origin [email protected]:<USERNAME>/<REPO_NAME>.git
$ git push -u origin main









Clone:




  • Clone public repo:




CODE
$ git clone <REPO_URL>







  • Clone Private repo:
    Open GitHub Account → Settings → Developer Settings → Personal access tokens - Tokens (classic) → Generate new token (classic)




CODE
$ git clone https://<TOKEN>@github.com/<USERNAME>/<REPO_NAME>.git









PUSH:




CODE
# Push the commits
$ git push









PULL:




CODE
# “git pull” is a combination of “git fetch” and “git merge”
$ git pull









Branch:




CODE
# List local branches
$ git branch

# List all branches local and remote, (the connected branches = Red color)
$ git branch -a

# Create a new local branch
$ git branch <BRANCH_NAME>

# Delete a local branch (if merged)
$ git branch -d <BRANCH_NAME>

# Delete local branch (force, regardless of merge status), even if it’s merged or not
$ git branch -D <BRANCH_NAME>

# Move from the current branch to the existing branch
$ git checkout <EXISTING_BRANCH_NAME>

# Create and switch to a new local branch: Take the changes from the current branch and move it to the new branch
$ git checkout -b <NEW_BRANCH_NAME>









List current commit history:




CODE
$ git reflog









Undo commit:




  • Undo last commit:




CODE
$ git reset --soft HEAD~1
# OR
$ git revert HEAD







  • Undo to specific commit:




CODE
$ git reflog
$ git revert <ID>









List current commit history:




CODE
$ git reflog
$ git revert <ID>









Stash:




CODE
# List of stashes:
$ git stash list

# Add to stash:
$ git stash

# Apply specific stash index
$ git stash apply stash@{<INDEX>}

# Retrieve last stash Recommended:
$ git stash apply

# Retrieve last stash NOT recommended:
$ git stash pop

# Retrieve a specific stash:
$ git stash apply stash@{<INDEX>}

# Remove a single stashed state from the stash list:
$ git stash drop stash@{<INDEX>}

# Remove last stash:
$ git stash drop

# Remove all stashed files at once:
$ git stash clear









Merge:




CODE
$ git merge <BRANCH_NAME>









Count Commits:




CODE
$ git shortlog -s
$ git shortlog -s -n






More:

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Modify Windows Support Phone Number with PowerShell
1 Quelle
Die Zukunft des Einkaufens: Warum wir ein neues Kapitel aufschlagen (und wie du es mitschreiben kannst)
1 Quelle
ZDE Podcast 251: Wie sieht digitales Instore Marketing 2026 aus, Amit Chatterjee?
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten All You Need to Know: Popular Tools for Git and GitHub

Thematisch verwandte Begriffe: Need, Know, Popular, Tools · 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 ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...