#gitreverttospecificcommit результаты поиска
this in your .bashrc / .zshrc will help you just call newgit and voila, this will neva happen again!
git hard reset command is used to reset a Git repository to a specific commit, discarding all uncommitted changes, both in the staging area and your working directory. It can be destructive because it rolls back code to exact commit state, deleting all changes after said state.
From Zero to Git Pro - Things You Weren’t Taught Everyone knows git commit -m "fix". But real Git power? That starts here
git commit -m “fix bug” git commit -m “fix new error caused by prev fix” git commit -m “last fix” git commit -m “final last fix” git commit -m “new feature”
Here's my favorite git feature that no one knows about: You can reference commits using the commit message instead of the hash. The ":/" syntax accepts a regex that matches any part of the commit message, returning the youngest matching commit. git-scm.com/docs/revisions…
cursor pls bring back the ability to @ specific commits i am going to lose it
Been working on a long term project for literally a year now and just lost three months of work because I forgot to commit it to Git 🙃
git commit -am "" --date "4/20/2024" allows you to add commits into the past and change your github contribution graph:
我用的最多的一个 git 小技巧,一次 commit以后,突然发现还有点问题,又修改了几行代码,不想生成一个新的 commit 怎么办? 添加修改:git add . 使用原来的 commit:git commit --amend --no-edit
Currently googling “how do you revert staged git commits.”
I have a new favourite git snippet and its amazing. $ git rebase -i --exec "make CFLAGS='-Werror' e7509a8c03 It runs make on every commit between e7509a8c03 and HEAD, building the project and stopping the rebase if the build fails. Allowing me to fix the commit and continue.
When Git says 'commit early, commit often' but your TS compiler says 'fix these 50 errors first'
Using alias with git is so cool. git add . = ga git commit -m “message” = gcommit “message” git push = gp git cherry-pick SHA = gcp SHA git status = gs git pull rebase = gpr git rebase -i HEAD~2 = gri HEAD~2 And so on …
VS Code has a timeline feature that lets you revert and compare changes between git commits
🔥 Git Tip: Use `git add -p` to review and add changes hunk-by-hunk. Handy when you want to break a single file's changes into two commits
#1 Do you know ?? In Git, you can rename your last commit without losing it, using this command : git commit --amend -m "new message"
Okay, one more... Ever commit something only to immediately realize that you're on the wrong branch? Use "git move <branch>".
I'm only clicking the GitHub job so that I can click "Rerun Failed Jobs", but then the page jumps to the end of the log.
Something went wrong.
Something went wrong.
United States Trends
- 1. Colts 29.3K posts
- 2. Jets 47.2K posts
- 3. Cheney 165K posts
- 4. AD Mitchell 2,944 posts
- 5. Shaheed 9,017 posts
- 6. Welcome to Indy N/A
- 7. Election Day 144K posts
- 8. Garrett Wilson N/A
- 9. Chris Ballard N/A
- 10. Meyers 13.3K posts
- 11. Two 1st 3,647 posts
- 12. Quinnen Williams 1,878 posts
- 13. Mamdani 602K posts
- 14. Seahawks 18.4K posts
- 15. #ForTheShoe N/A
- 16. Waddle 6,868 posts
- 17. Jamal Adams N/A
- 18. TWO FIRSTS 1,067 posts
- 19. Mougey N/A
- 20. #weloveyouari 3,959 posts