Those are some great tips! I always loved this site called „Oh Sh*t, git“ because it has a pretty elaborative list of what can go wrong and how to fix it: ohshitgit.com/
Senior Software Engineer started programming over 20 years ago. C C++ python flask QT django AWS GCP Airflow k8s terraform JS CloudDB's rust vue TS API backend dev #Intp #mathematics #nerd
just learn it like any other language or a tool in toolchain. Like cmake or makefile syntax... :) Its not hard especially if you do not mind studying how it is implemented there are nice courses on the topic.
🚨️ ugit helps you undo your last git command with grace. Your damage control git buddy
ugit
Undo your last oopsie 🙈️ in git without much effort
Why ugit
You did an accidental git command you didn't want to.
You don't want to waste your time searching on how to undo ...
What's in the box
ugit supports undoing following operations, some are a WIP. If you know of any operation that can be undone and is not in the list, make sure to send a quick PR 💛️
Undo git commit
Undo git add
Undo git push
Undo git branch -D (branch delete)
Undo git pull
Undo git reset
Undo git tag -d (tag delete)
Undo git stash apply
Undo git stash pop/drop/clear
Undo accidental file delete (Restore a deleted file after a commit)
Software engineer. Fullstack Node.js. API designer. Play with JavaScript, Python, MongoDB, PostgreSQL, ELK. Available for remote or independent projects.
Those are some great tips! I always loved this site called „Oh Sh*t, git“ because it has a pretty elaborative list of what can go wrong and how to fix it: ohshitgit.com/
What a great resource! Thanks a lot for sharing it. 🚀
just learn it like any other language or a tool in toolchain.
Like cmake or makefile syntax... :)
Its not hard especially if you do not mind studying how it is implemented there are nice courses on the topic.
Useful tips
Thank you, @mrzhouzh ! 🙏🏻️
thanks, really useful. It's funny that most dev use git, but not many know stuff you mentioned here.
Thanks to you, @pavelee ! 🙏🏻️
Wow, that's super useful. I have to say I LOVE git, but I don't know as much as I'd like on how to use it properly haha
Thanks a lot @lelepg , Git is hugeee!
Wrote this script to undo your last git f**k up (still in WIP for a stable release)
Might help someone :)
🚨️ ugit helps you undo your last git command with grace. Your damage control git buddy
ugit
Undo your last oopsie 🙈️ in git without much effort
Why
ugit
git
command you didn't want to.What's in the box
ugit
supports undoing following operations, some are a WIP. If you know of any operation that can be undone and is not in the list, make sure to send a quick PRgit commit
git add
git push
git branch -D
(branch delete)git pull
git reset
git tag -d
(tag delete)git stash apply
git stash pop/drop/clear
git merge
git tag
(rename a tag)git rebase
git cherry-pick
git worktree remove
(recover deleted work-tree)Installation
…
Wow! Great job! 🤯️
Using reflog can also be helpful to see what you did on your local. :)
Thanks for mentioning it! It's very useful in figuring out what happened
Thanks for not mentioning force push 😉 Worked at project where lead used it routinely, and that was very frustrating
Thanks, @alekseiberezkin ! I can't imagine how frustrating it was. 🤦🏻♂️️
great tips, thanks
Thank you! 🙌
This is very useful
Thank you 🙌
Thank you for useful tips
Thank you 🙌
git rebase -i Head~x
This works to delete the commit history and rebase your branch on any commit