📌 How to Deploy a Flutter Web App to Firebase Hosting with GitHub Actions
✍️ Atuoha Anthony
🏷️ #Flutter
✍️ Atuoha Anthony
🏷️ #Flutter
❤1
📌 Learn Key System Design Principles Behind High-Traffic Platforms Like Gaming and Job Discovery
✍️ Prankur Pandey
🏷️ #System_Design
✍️ Prankur Pandey
🏷️ #System_Design
📌 What are Data Transfer Objects? Learn to Use DTOs in Your Java Spring-Based Projects
✍️ Augustine Alul
🏷️ #Java
✍️ Augustine Alul
🏷️ #Java
📌 How to Create a Real-Time Gesture-to-Text Translator Using Python and Mediapipe
✍️ OMOTAYO OMOYEMI
🏷️ #Computer_Vision
✍️ OMOTAYO OMOYEMI
🏷️ #Computer_Vision
📌 How to Build an Always Listening Network Connectivity Checker in Flutter using BLoC
✍️ Atuoha Anthony
🏷️ #Flutter
✍️ Atuoha Anthony
🏷️ #Flutter
📌 Deep Reinforcement Learning in Natural Language Understanding
✍️ Oyedele Tioluwani
🏷️ #Machine_Learning
✍️ Oyedele Tioluwani
🏷️ #Machine_Learning
📌 From drop-out to backpacker to self-taught developer with Dominick Monaco [Podcast #183]
✍️ Beau Carnes
🏷️ #podcast
✍️ Beau Carnes
🏷️ #podcast
image_2025-08-23_07-39-01.png
1.2 MB
Cheat Sheet for Git Commands
🔸 Configuration
-
Sets the name for commits globally (for all repositories).
-
Sets the email for commits globally.
-
Shows all Git configuration settings.
🔸 Repository and Remote Repositories
-
Initializes a new Git repository in the current directory.
-
Creates a local copy of a remote repository.
-
Adds a new remote repository with a name and URL.
-
Removes a remote repository by name.
-
Renames a remote repository.
🔸 Branches
-
Lists all branches in the repository.
-
Creates a new branch with the specified name.
-
Creates a new branch and immediately switches to it.
-
Switches to the specified branch.
-
Merges changes from the specified branch into the current one.
-
Moves commits from the current branch on top of another.
-
Deletes a branch that has already been merged.
-
Forcibly deletes a branch regardless of its state.
🔸 Staging and Commits
-
Adds changes in the specified file to staging.
-
Adds all changes in the current directory and subfolders.
-
Commits staged changes with a message.
-
Modifies the last commit (message or content).
🔸 Undoing Changes
-
Removes a file from staging (keeps changes).
-
Undoes the last commit but keeps changes in the working directory.
🔸 Viewing Changes
-
Shows the state of the working directory and staging.
-
Shows differences between the working directory and the index.
-
Shows differences between staged changes and the last commit.
🔸 History
-
Shows the commit history of the current branch.
-
Condensed log (one line per commit).
-
Shows information about a specific commit.
-
Shows the last modification for each line of a file.
🔸 Stash
-
Saves current changes to temporary storage.
-
Lists all stash entries.
-
Applies changes from the last stash.
-
Deletes a specific stash.
-
Applies the last stash and removes it.
🔸 Working with Remote Repository
-
Downloads changes from the remote repository and merges them.
-
Sends local commits to the remote repository.
-
Sends the specified branch to the remote repository.
-
Downloads changes from the remote repository without merging.
-
Updates all remote repositories.
🔸 Tags
-
Creates a tag for a specific commit.
-
Creates an annotated tag with a message.
-
Sends a tag to the remote repository.
-
Deletes a tag locally.
🔸 Advanced Commands
-
Applies changes from the specified commit to the current branch.
-
Interactive rebase for the last *n* commits.
-
Shows a log of all actions in the repository.
-
Helps find a commit with a bug using binary search.
-
Shows the latest tag available for a commit.
-
git config --global user.name "Your Name" Sets the name for commits globally (for all repositories).
-
git config --global user.email "you@example.com" Sets the email for commits globally.
-
git config --list Shows all Git configuration settings.
-
git init Initializes a new Git repository in the current directory.
-
git clone <repo> Creates a local copy of a remote repository.
-
git remote add <name> <url> Adds a new remote repository with a name and URL.
-
git remote remove <name> Removes a remote repository by name.
-
git remote rename <old-name> <new-name> Renames a remote repository.
-
git branch Lists all branches in the repository.
-
git branch <branch-name> Creates a new branch with the specified name.
-
git checkout -b <branch-name> Creates a new branch and immediately switches to it.
-
git checkout <branch-name> Switches to the specified branch.
-
git merge <branch> Merges changes from the specified branch into the current one.
-
git rebase <branch> Moves commits from the current branch on top of another.
-
git branch -d <branch-name> Deletes a branch that has already been merged.
-
git branch -D <branch-name> Forcibly deletes a branch regardless of its state.
-
git add <file> Adds changes in the specified file to staging.
-
git add . Adds all changes in the current directory and subfolders.
-
git commit -m "message" Commits staged changes with a message.
-
git commit --amend Modifies the last commit (message or content).
-
git reset <file> Removes a file from staging (keeps changes).
-
git reset HEAD~1 Undoes the last commit but keeps changes in the working directory.
-
git status Shows the state of the working directory and staging.
-
git diff Shows differences between the working directory and the index.
-
git diff --staged Shows differences between staged changes and the last commit.
-
git log Shows the commit history of the current branch.
-
git log --oneline Condensed log (one line per commit).
-
git show <commit> Shows information about a specific commit.
-
git blame <file> Shows the last modification for each line of a file.
-
git stash Saves current changes to temporary storage.
-
git stash list Lists all stash entries.
-
git stash apply Applies changes from the last stash.
-
git stash drop Deletes a specific stash.
-
git stash pop Applies the last stash and removes it.
-
git pull Downloads changes from the remote repository and merges them.
-
git push Sends local commits to the remote repository.
-
git push origin <branch> Sends the specified branch to the remote repository.
-
git fetch Downloads changes from the remote repository without merging.
-
git fetch --all Updates all remote repositories.
-
git tag <tag-name> Creates a tag for a specific commit.
-
git tag -a <tag-name> -m "message" Creates an annotated tag with a message.
-
git push origin <tag-name> Sends a tag to the remote repository.
-
git tag -d <tag-name> Deletes a tag locally.
-
git cherry-pick <commit> Applies changes from the specified commit to the current branch.
-
git rebase -i HEAD~n Interactive rebase for the last *n* commits.
-
git reflog Shows a log of all actions in the repository.
-
git bisect Helps find a commit with a bug using binary search.
-
git describe Shows the latest tag available for a commit.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8
📌 How to Build an Advice Generator Chrome Extension with Manifest V3
✍️ Ophy Boamah
🏷️ #Web_Development
✍️ Ophy Boamah
🏷️ #Web_Development
❤2