DEV Community

Farha kousar
Farha kousar

Posted on

14 5 5 5 6

Git cheatsheet

"Don't be overwhelmed by learning Git! 😊 It's simpler than you might think. Here's a condensed list of essential Git commands and concepts to get you started:

  1. Core:

    • git init
    • git clone
    • git add
    • git commit
    • git status
    • git diff
    • git checkout
    • git reset
    • git log
    • git show
    • git tag
    • git push
    • git pull
  2. Branching:

    • git branch
    • git checkout -b
    • git merge
    • git rebase
    • git branch --set-upstream-to
    • git branch --unset-upstream
    • git cherry-pick
  3. Merging:

    • git merge
    • git rebase
  4. Stashing:

    • git stash
    • git stash pop
    • git stash list
    • git stash apply
    • git stash drop
  5. Remotes:

    • git remote
    • git remote add
    • git remote remove
    • git fetch
    • git pull
    • git push
    • git clone --mirror
  6. Configuration:

    • git config
    • git global config
    • git reset config
  7. Plumbing:

    • git cat-file
    • git checkout-index
    • git commit-tree
    • git diff-tree
    • git for-each-ref
    • git hash-object
    • git ls-files
    • git ls-remote
    • git merge-tree
    • git read-tree
    • git rev-parse
    • git show-branch
    • git show-ref
    • git symbolic-ref
    • git tag --list
    • git update-ref
  8. Porcelain:

    • git blame
    • git bisect
    • git checkout
    • git commit
    • git diff
    • git fetch
    • git grep
    • git log
    • git merge
    • git push
    • git rebase
    • git reset
    • git show
    • git tag
  9. Alias:

    • git config --global alias.
  10. Hook:

    • git config --local core.hooksPath

For faster learning, check out these resources:

  1. Git Official Documentation: git-scm.com/doc
  2. GitHub Learning Lab: https://lnkd.in/dfQY6Jtp
  3. Codecademy Course: https://lnkd.in/dwG5_C6q
  4. Pro Git by Scott Chacon [Book]: git-scm.com/book/en/v2
  5. YouTube:
    • FreeCodeCampOrg for beginners: rb.gy/ljxt5s
    • FreeCodeCampOrg for intermediate learners: rb.gy/1x6mc

Git #VersionControl #LearningGit

Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/farhakousar16
And check out my GitHub profile and star my repositories: https://github.com/FarhaKousar1601

If you have anything to add or any questions, don't hesitate to ask! 😊🌱"

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (3)

Collapse
 
zubi5 profile image
Zubi-5 β€’

Thanks

Collapse
 
misbasaba profile image
Misbasaba β€’

Thanks❀

Collapse
 
kcdrama profile image
Kcdrama β€’

Thank you

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

πŸ‘‹ Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay