Background
Break News
How to add local font to Tailwind Css and NextJS? - Tutorial Design Pattern? - Blockchain Technology, How to create own Bitcoin virtual currency - Zustand mordern management state - Design Pattern - Flyweight Pattern? - Docker Full training Topic

Git cheat sheet - Best git command for daily works - Webzone Tech Tips

Monday, 12 August 2024
|
Read: Completed in minutes

Git cheat sheet - Best git command for daily works - Webzone Tech Tips

Hello everyone, Welcome back to Webzone Tech Tips channel, looking around from LinkedIn, i saw some useful thing for developer while using GIT, (You can take a look for related topic of git on this link) and on this topic, I will introduce some basically and usually to use command beside the git flow below, I hope through this screenshot it can support you guy in using GIT command in your daily works

Here is the git command detail

Thanks for Brij Kishore Pandey sharing

Git cheat sheet - Best git command for daily works - Webzone Tech Tips


๐Ÿญ. ๐—ด๐—ถ๐˜ ๐—ฑ๐—ถ๐—ณ๐—ณ: Show file differences not yet staged.
๐Ÿฎ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜ -๐—ฎ -๐—บ "๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜ ๐—บ๐—ฒ๐˜€๐˜€๐—ฎ๐—ด๐—ฒ": Commit all tracked changes with a message.
๐Ÿฏ. ๐—ด๐—ถ๐˜ ๐˜€๐˜๐—ฎ๐˜๐˜‚๐˜€: Show the state of your working directory.
๐Ÿฐ. ๐—ด๐—ถ๐˜ ๐—ฎ๐—ฑ๐—ฑ ๐—ณ๐—ถ๐—น๐—ฒ_๐—ฝ๐—ฎ๐˜๐—ต:Add file(s) to the staging area.
๐Ÿฑ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐—ผ๐˜‚๐˜ -๐—ฏ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต_๐—ป๐—ฎ๐—บ๐—ฒ: Create and switch to a new branch.
๐Ÿฒ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐—ผ๐˜‚๐˜ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต_๐—ป๐—ฎ๐—บ๐—ฒ: Switch to an existing branch.
๐Ÿณ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜ --๐—ฎ๐—บ๐—ฒ๐—ป๐—ฑ:Modify the last commit.
๐Ÿด. ๐—ด๐—ถ๐˜ ๐—ฝ๐˜‚๐˜€๐—ต ๐—ผ๐—ฟ๐—ถ๐—ด๐—ถ๐—ป ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต_๐—ป๐—ฎ๐—บ๐—ฒ: Push a branch to a remote.
๐Ÿต. ๐—ด๐—ถ๐˜ ๐—ฝ๐˜‚๐—น๐—น: Fetch and merge remote changes.
๐Ÿญ๐Ÿฌ. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐—ฏ๐—ฎ๐˜€๐—ฒ -๐—ถ: Rebase interactively, rewrite commit history.
๐Ÿญ๐Ÿญ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—น๐—ผ๐—ป๐—ฒ: Create a local copy of a remote repo.
๐Ÿญ๐Ÿฎ. ๐—ด๐—ถ๐˜ ๐—บ๐—ฒ๐—ฟ๐—ด๐—ฒ: Merge branches together.
๐Ÿญ๐Ÿฏ. ๐—ด๐—ถ๐˜ ๐—น๐—ผ๐—ด --๐˜€๐˜๐—ฎ๐˜: Show commit logs with stats.
๐Ÿญ๐Ÿฐ. ๐—ด๐—ถ๐˜ ๐˜€๐˜๐—ฎ๐˜€๐—ต: Stash changes for later.
๐Ÿญ๐Ÿฑ. ๐—ด๐—ถ๐˜ ๐˜€๐˜๐—ฎ๐˜€๐—ต ๐—ฝ๐—ผ๐—ฝ: Apply and remove stashed changes.
๐Ÿญ๐Ÿฒ. ๐—ด๐—ถ๐˜ ๐˜€๐—ต๐—ผ๐˜„ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜_๐—ถ๐—ฑ: Show details about a commit.
๐Ÿญ๐Ÿณ. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐˜€๐—ฒ๐˜ ๐—›๐—˜๐—”๐——~๐Ÿญ: Undo the last commit, preserving changes locally.
๐Ÿญ๐Ÿด. ๐—ด๐—ถ๐˜ ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜-๐—ฝ๐—ฎ๐˜๐—ฐ๐—ต -๐Ÿญ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜_๐—ถ๐—ฑ: Create a patch file for a specific commit.
๐Ÿญ๐Ÿต. ๐—ด๐—ถ๐˜ ๐—ฎ๐—ฝ๐—ฝ๐—น๐˜† ๐—ฝ๐—ฎ๐˜๐—ฐ๐—ต_๐—ณ๐—ถ๐—น๐—ฒ_๐—ป๐—ฎ๐—บ๐—ฒ: Apply changes from a patch file.
๐Ÿฎ๐Ÿฌ. ๐—ด๐—ถ๐˜ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต -๐—— ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต_๐—ป๐—ฎ๐—บ๐—ฒ: Delete a branch forcefully.
๐Ÿฎ๐Ÿญ. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐˜€๐—ฒ๐˜: Undo commits by moving branch reference.
๐Ÿฎ๐Ÿฎ. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐˜: Undo commits by creating a new commit.
๐Ÿฎ๐Ÿฏ. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฟ๐—ฟ๐˜†-๐—ฝ๐—ถ๐—ฐ๐—ธ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜_๐—ถ๐—ฑ: Apply changes from a specific commit.
๐Ÿฎ๐Ÿฐ. ๐—ด๐—ถ๐˜ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต: Lists branches.
๐Ÿฎ๐Ÿฑ. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐˜€๐—ฒ๐˜ --๐—ต๐—ฎ๐—ฟ๐—ฑ: Resets everything to a previous commit, erasing all uncommitted changes.



Thanks for reading. Any feedback and questions for topic: Git cheat sheet - Best git command for daily works - Webzone Tech Tips. Leave your comment on below post, we can discuss about it.
✋✋ Learn Tech Tips - I am Zidane, See you next time ✋✋

๐Ÿ™‡๐Ÿผ๐Ÿ™‡๐Ÿผ We Appreciate Your Comments and Suggestions - Webzone, all things Tech Tips web development
Popular Webzone Tech Tips topic maybe you will be like it - by Webzone Tech Tips - Zidane
As a student, I found Blogspot very useful when I joined in 2014. I have been a developer for years . To give back and share what I learned, I started Webzone, a blog with tech tips. You can also search for tech tips zidane on Google and find my helpful posts. Love you all,

I am glad you visited my blog. I hope you find it useful for learning tech tips and webzone tricks. If you have any technical issues, feel free to browse my posts and see if they can help you solve them. You can also leave a comment or contact me if you need more assistance. Here is my blog address: https://learn-tech-tips.blogspot.com.

My blog where I share my passion for web development, webzone design, and tech tips. You will find tutorials on how to build websites from scratch, using hot trends frameworks like nestjs, nextjs, cakephp, devops, docker, and more. You will also learn how to fix common bugs on development, like a mini stackoverflow. Plus, you will discover how to easily learn programming languages such as PHP (CAKEPHP, LARAVEL), C#, C++, Web(HTML, CSS, javascript), and other useful things like Office (Excel, Photoshop). I hope you enjoy my blog and find it helpful for your projects. :)

Thanks and Best Regards!
Follow me on Tiktok @learntechtips and send me a direct message. I will be happy to chat with you.
Webzone - Zidane (huuvi168@gmail.com)
I'm developer, I like code, I like to learn new technology and want to be friend with people for learn each other
I'm a developer who loves coding, learning new technologies, and making friends with people who share the same passion. I have been a full stack developer since 2015, with more than years of experience in web development.
Copyright @2022(November) Version 1.0.0 - By Webzone, all things Tech Tips for Web Development Zidane
https://learn-tech-tips.blogspot.com