VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
How to Undo Mistakes With Git Using the Command Line

How to Undo Mistakes With Git Using the Command Line

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Git offers lots of different ways to undo, revert, recover and fix your mistakes. In this course, we'll look at the bad things that can happen to you - and how Git can save your neck. -- This course was created by Tobias G-nther from Tower. Tower creates a powerful Git desktop GUI for Mac and Windows. You can download it here: https://www.git-tower.com Note: This course focuses on using Git with the command line. You do not need Tower or any other GUI software to follow along
Date: 2022-03-14

Comments and reviews: 9


A like for a comprehensive overview of all the different possible things one can do in git to fix your mistakes.
But a dislike for using a GUI tool almost half of the time. You should have used git status and git log to find information about the commit history. And you also used the GUI tool to checkout different branches, and even do cherry-pick! I'm not necessarily against using GUI tools, but the title of your video is -How to Undo Mistakes With Git Using the Command Line--. It implies that you will not use any GUI tools, only Using the Command Line! If instead you would have used Command Line ONLY and not used the GUI tool, it would have made explaining the actual git commands better. I think that using the GUI tool is less clear about what is actually going on. It is better to use the actual Command Line to explain how git works, especially since that's the title of your video!

reply

Really good video. On git restore -p enter -?- and git will show you the following:
y - discard this hunk from worktree
n - do not discard this hunk from worktree
q - quit; do not discard this hunk or any of the remaining ones
a - discard this hunk and all later hunks in the file
d - do not discard this hunk or any of the later hunks in the file
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help

reply

11:30 That's my biggest concern, git restore doesn't ask for confirmation. While I'm OK with that in other cases, when you are discarding changes, I feel like git should err on the side of caution.
reply

Im bsc cs student and its project time...could you please mention some projects with tutorials bcs many project centers approach me with expensive fees...i can't afford it...help me guys
reply

This video is so goood! Important stuff af:
I had seen the video when it came out..
But yesterday when I ran into a problem I realized I should see this video again properly

reply

Another good tip is when we have worked on a file but want to commit only parts of it, we can use the -p option to decide which lines should and shouldn't be staged.
reply

-Using the command line- is an unnecessary addition to the title, given that a quite relevant portion of the video shows off his GUI tool.
reply

please I want a full course talks about HTML, CSS, and JS all of them are standard version like not html5 or css3 or something. Thanks!
reply

Nobody covered these git commands before. Thanks a lot!
Can someone please tell me what are the commands for case # 17 at 54:01

reply
Add a review, comment






Other channel videos