In this tutorial, we will cover how to undo or revert a code change. Also I will show you how to reset your git branch to any previous commit id.
Here are the topics we will conver in this git tutorial,
1) Undo uncommited changes using,
git checkout —
2) Undo commited changes using,
git revert
3) Resetting changes using,
git reset
Git Tutorial:
Next Video:
Git Tutorial 6: Branches (Create, Merge, Delete a branch):
Machine Learning Tutorial With Python:
Website:
Facebook:
Twitter:
Patreon:
Nguồn: https://belahanajima.com/
Xem thêm bài viết khác: https://belahanajima.com/cong-nghe/
Step by step guide on how to learn data science for free: https://www.youtube.com/watch?v=Vn_mmOuQkSA
Full python course: https://www.youtube.com/playlist?list=PLeo1K3hjS3usILfyvQlvUBokXkHPSve6S
Machine learning tutorials with exercises:
https://www.youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw
Correction: Eating samosa will make you fat as well. Eating any carbs make you fat.
Exactly what I was looking for, thanks!
Thanks for making it simple
bgm is irritating man
what a great tutorial you made bro
Finally I found my answers thanks men
Music? seriously?
Cool Video, Thanks!
Please hit the like button and subscribe to our youtube channel. Thank You.
Awesome bro..
does this mean that on public github repos i can make changes to anyone's repos without needing any permission. since nowhere we were asked for any authentication ?
background music is really unnecessary and distracting 🙁
One of the best Git tutorials. It was easy to follow and straightforward which for some reason most Git tutorials lack. After I did a $git reset –hard and then tried to push I got this message: hint: Updates were rejected because the tip of your current branch is behind. Is there like a force push?
we can get the logs in one-line using, git log –oneline. this way we get shorter code and ease in reading as well.
another trick in reset is not using –hard. this way only the commits are deleted but the code remains intact.
Thank you man, I learned a lot
so can we recover the earlier history of code in the Editor if we have reseted it? Cant' recover the code from local and remote repository. All changes deleted 🙁 . Please help
great explanation on "git checkout — <filename>" 🙂
Thanks man for these understandable tutorials
so help full. thanks a bunch man!!!
Very well organized tutorial.
Where we can ask question regarding above video… I have observed that when we have two git commits and after that if we try to run "git revert" it does not work…it would be great if you add video regarding same or comment
I hope no kids were harmed for this video ^^
Please stop the background music it is so distracting
Your videos are incredibly more helpful than the github tutorial at swcarpentry =] Thank you so much!
Please, do not include music in your videos, because there are people, who increase the playback speed of video, and that causes music to really get distorted and annoying, stopping one from concentrating. Thank you.
how to change username and email in gitbash
Om namah shivay
Bro I think u should change your channel name from codebasic to code-advanced
Reversion can be used to recover accidentally deleted files.
nicesu 😊
A very technical term committed in very simple words…great job.
Thank you nice demo. You could also say "dash" instead of "minus"..:-)
thank you sir
Please, stop it with the background music in tutorials !!!!!
good, so the git reset will also reset the code on local repository or on remote also?