Git10 min

Git Commands

C

Coding Dimension

May 1, 2024

Git Commands

A complete beginner-friendly guide to the core concepts of JavaScript.


📌 What is Github?

Github Commands can:

  • git

  • git --version

  • git clone

  • git status

  • git add

  • git commit -m "commit message"

  • git commit -am "commit message"

  • q for to quit the commit message editor

  • git log

  • git diff

  • git stash

  • git reset

  • git reset HEAD~1

  • git reset

  • git reset --hard

  • git revert

  • git fetch

  • git tag

  • git rebase

  • git cherry-pick

  • git bisect

  • git blame

  • git show

  • git clean -f

  • git archive --output=archive.zip

  • git config --global user.name "Your Name"

  • git config --global user.email "your.email@example.com"

  • git config --global --list

  • git config --global core.editor "code --wait"

  • git config --global merge.tool "meld"

  • git config --global diff.tool "meld"

  • git config --global alias.co checkout

  • git config --global alias.br branch

  • git config --global alias.ci commit

  • git config --global alias.st status

  • git remote add origin

  • git remote -v

  • git branch

  • git branch -M main

  • git push

  • git push origin main

  • git push -u origin main

  • git checkout

  • git checkout -b

  • git checkout -d

  • git push -set-upstream origin

  • git merge

  • git pull origin main

Example:

console.log("Hello, World!")
Last updated on 5/1/2024