Skip to content
View turboteun2's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report turboteun2

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
turboteun2/README.md

Git Commands Cheat Sheet

Een overzicht van veelgebruikte Git-commando's, gesorteerd op categorie. Meest gebruikte commando's zijn gemarkeerd met ⭐.

1. Configuratie

git config --global user.name "Jouw Naam"      # Stel je naam in
git config --global user.email "jouw@email.com" # Stel je e-mail in

2. Repositories

git init           # ⭐ Initialiseer een nieuwe Git-repository
git clone <url>    # ⭐ Clone een bestaande repository

3. Status & Log

git status         # ⭐ Bekijk de status van je repository
git log           # Bekijk commit-historie
git log --oneline # Verkorte log-weergave

4. Toevoegen & Committen

git add <bestand>    # Voeg een specifiek bestand toe
git add .           # ⭐ Voeg alle gewijzigde bestanden toe
git commit -m "Bericht" # ⭐ Commit de wijzigingen met een bericht

5. Branches

git branch             # Toon beschikbare branches
git branch <naam>      # Maak een nieuwe branch
git checkout <naam>    # ⭐ Wissel naar een andere branch
git switch <naam>      # Alternatief voor checkout
git merge <branch>     # Merge een branch in de huidige branch
git branch -d <naam>   # Verwijder een branch

6. Pushen & Pullen

git remote add origin <url> # Koppel een repository aan een remote

git push origin <branch>  # ⭐ Push wijzigingen naar remote repository
git pull origin <branch>  # ⭐ Haal de laatste wijzigingen op van remote repository

7. Terugdraaien & Herstellen

git checkout -- <bestand>   # Herstel een bestand naar de laatste commit
git reset HEAD <bestand>    # Verwijder een bestand uit de staging area
git reset --hard <commit>   # ⭐ Reset naar een specifieke commit (let op: wijzigingen gaan verloren!)

8. Stashing (Tijdelijk Opslaan)

git stash          # ⭐ Sla tijdelijke wijzigingen op zonder te committen
git stash pop      # Haal de opgeslagen wijzigingen terug
git stash list     # Bekijk alle opgeslagen stashes

9. Tags

git tag <versie>   # Maak een nieuwe tag
git tag            # Bekijk alle tags
git push origin <tag> # Push een tag naar remote repository

10. Handige Extra's

git diff           # Bekijk verschillen tussen commits of bestanden
git rebase <branch> # Herschrijf commit-historie

Veelgebruikte Commando's ⭐

  • git status
  • git add .
  • git commit -m "Bericht"
  • git push origin <branch>
  • git pull origin <branch>
  • git checkout <branch>
  • git reset --hard <commit>
  • git stash

Popular repositories Loading

  1. Bitbot Bitbot Public

    Crypto that will auto-trade for us on the Bitvavo platform.

    Python 2 1

  2. phptut phptut Public

    More info on this site:

    Dart 2

  3. flutter_firebase flutter_firebase Public

    Upload images to firebase with flutter

    Objective-C 1

  4. turboteun2 turboteun2 Public

    Config files for my GitHub profile.

  5. tweeter tweeter Public

    Tweet quotes from the Bible automatically

    Python

  6. tweet_jokes tweet_jokes Public

    Tweet random jokes

    Python