Tutorials Logic, IN
+91 8092939553
info@tutorialslogic.com
FAQs
Support
Simply Easy Logic
Home
Home
About Us
Contact Us
Tutorials
All Tutorials
HTML
CSS
JavaScript
Angular
React
Vue.js
Node.js
Python
Java
PHP
MongoDB
MySQL
C Language
C++
DSA
All...
Services
Academic Projects
Resume Writing
Interview Questions
Website Templates
Website Development
Digital Marketing
Content Writing
Logo Designing
Blogs
Nrwl NX
Git
RxJS
More
Careers
FAQs
Privacy Policy
Terms of Service
License
Compiler
Tutorials
Navigation
Home
About Us
Contact Us
Blogs
FAQs
Tutorials
HTML
CSS
JavaScript
Python
Angular
React
Java
Node.js
PHP
MongoDB
All Tutorials
Services
Academic Projects
Resume Writing
Interview Questions
Website Development
Compiler
Tutorials
Online Compiler
HTML
CSS
JavaScript
Python
Java
Node.js
TypeScript
Angular
React
Vue.js
Git
C++
C
Fullscreen
Git Editor
Run
# Git Command Reference — Interactive Cheatsheet # Click Run to explore Git commands # ── Setup ────────────────────────────────────────────────── git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --list # ── Init & Clone ─────────────────────────────────────────── git init # init new repo git clone <url> # clone remote repo git clone <url> my-folder # clone into folder # ── Staging & Committing ─────────────────────────────────── git status # show working tree status git add . # stage all changes git add <file> # stage specific file git commit -m "feat: add login" # commit with message git commit --amend # amend last commit # ── Branching ────────────────────────────────────────────── git branch # list branches git branch feature/login # create branch git checkout feature/login # switch branch git checkout -b feature/login # create + switch git switch -c feature/login # modern syntax git merge feature/login # merge into current git branch -d feature/login # delete branch # ── Remote ───────────────────────────────────────────────── git remote -v # list remotes git remote add origin <url> # add remote git push origin main # push to remote git pull origin main # pull from remote git fetch origin # fetch without merge # ── Log & Diff ───────────────────────────────────────────── git log --oneline --graph # compact log git diff # unstaged changes git diff --staged # staged changes git show <commit> # show commit details # ── Undo ─────────────────────────────────────────────────── git restore <file> # discard working changes git reset HEAD <file> # unstage file git reset --soft HEAD~1 # undo last commit (keep changes) git reset --hard HEAD~1 # undo last commit (discard changes) git revert <commit> # create revert commit # ── Stash ────────────────────────────────────────────────── git stash # stash changes git stash pop # apply + drop stash git stash list # list stashes # ── Tags ─────────────────────────────────────────────────── git tag v1.0.0 # create tag git tag -a v1.0.0 -m "Release" # annotated tag git push origin --tags # push tags
Output
Clear
Console
// Click Run to execute your code
Ready to Level Up Your Skills?
Explore 500+ free tutorials across 20+ languages and frameworks.
Browse Tutorials
Contact Us