ls -h is not hidden, it’s “human readable file sizes”. -a is all files (including hidden) and -l is long form
@epicgameryt4052 Жыл бұрын
that explains why ls -h just didnt work:)) but ls -la did work
@epicgameryt4052 Жыл бұрын
cs50 is genuinely the best thing out there on youtube. appreciate you all for this free lesson! really made my saturday more fun
@AryanK1511Ай бұрын
One of the best videos out there! Thank you so much for this content!!
@nneddenn6207 Жыл бұрын
Thanks for the vide! It was really interesting! I'm a senior dev, but didn't know some of the details. John is excellent at explanations, kudos to him
@johndbritton Жыл бұрын
Glad you liked the video!
@Pheenam4 жыл бұрын
Camera work is great
@RoshanGupta-fk9wi2 ай бұрын
Woah, this is incredible, it was new for me to know that git does not stores diffs, instead it stores complete snapshot of our repo
@M.H.Heydarchi3 жыл бұрын
Good point to learn more about Git. But it would be better to know something before watching this video. Then it will be more effective.
@armaghanasghar29114 жыл бұрын
@46:48 To get the file back via git you would need to (1) use "git log" to get all the commits and after getting commits (2) select the SHA before the file in which git was deleted, and then (3) git checkout . You will get your deleted file back in your working directory, but from there you would need to start a new branch. OR You could just rebase
@antilogism3 жыл бұрын
Those are good tools but it can be far easier than that as long as you have not committed yet. If you just wan't to roll back the point after the system "rm" but before and/all "git add"s, i.e. still no working file but not staged either, use git reset --mixed (default action, anyway). "Mixed" wont change the working directory, only the staging-area (aka index). If you want the ENTIRE working directory to exactly match the present branch commit then "git reset --hard" will do that. The problem with reset is you may want to be a bit more surgical, file-wise, about what you are doing as you may have several items staged and you just want a file or two back. Be careful with "--hard' since all changes, not just one or two, are lost. In the case in the video this would be fine. The delicate way is "git checkout -- new-feature2.rb" as this will grab that one file, leaving all others intact. That double-dash is the key. This can be a list of files too. "git checkout -- " is not limited to just HEAD (head being the last commit of the checked out branch) and that means you can pull your lost file from any point in history. Three weeks ago---no problem! (as long as it was committed at some point) You can use "git log" or "git reflog" to find a commit hash, branch or tag and use something like "git checkout yeOldTag -- new-feature2.rb". Once the file is back just add and commit as usual.
@Lambdaphile4 жыл бұрын
Remember your first *git init* command 10 years ago? Started from the init and now we're here! lol
@cusematt23 Жыл бұрын
Great video thanks John. You are a very good and clear speaker.
@bs3973 Жыл бұрын
This video changed my life, I swear by it 😭
@jdeep72 жыл бұрын
for some reason, he looks like Howard Wolowitz
@raheelmasood86568 ай бұрын
Been using Git for 8 years. I guess this is the first time I am actually relating all the commands I use with what is happening behind the scene. The idea of not mixing git branch with a tree like branch is the key here.
@countdigi4 ай бұрын
Git from the bits up is another good talk which shows behind the scene: kzbin.info/www/bejne/g4qzZmmHf9V3qJY
@sidducs Жыл бұрын
This is the best git tutorial on the planet
@mynameisabcd054 жыл бұрын
Thanks Linus Torvalds
@澳贼9 ай бұрын
so deep and clear, thank you!
@ElboxD2 жыл бұрын
31:44 really shows how awesome git is.
@cacanantes Жыл бұрын
Awesome presentation. Thanks for sharing.
@dazhouliu94376 жыл бұрын
Git's internal design is similar to block chain.
@lakshminarayanannandakumar12862 жыл бұрын
John Britton reminds me of Richard Henricks from Silicon Valley :)
@Tarsonis42 Жыл бұрын
Well, actually... John Britton reminds me of Howard Wolowitz from TBBT :)
@billtensus7 ай бұрын
I cry every time I see someone using ATOM. That was my favourite text editor. MS $%&u .
@sbhhdp4 жыл бұрын
How do I set up my terminal like his
@DannySamuel3 жыл бұрын
Install Oh my zsh
@tarikzaki54423 жыл бұрын
@@DannySamuel i'm using the fish shell and oh my fish , what is the name of this theme?
@karthickpn4502 жыл бұрын
@@tarikzaki5442 bira
@kscd0094 жыл бұрын
Would have been great if covered merge also
@mahmoudrezaizadiyar94253 жыл бұрын
خیلی مردی ، دمت گرم، واقعا مطلب مشتی بود. لوتی گری کردی که یاد دادی داداش.
@ehsanmon Жыл бұрын
خخخخخخخخ
@tarikzaki54423 жыл бұрын
using " git cat-file -t " for showing the type of the object and " git cat-file -p " for showing the content of the object was more useful to me than using " git show"
@AndreySem5 жыл бұрын
топовое видео по гиту
@seanysАй бұрын
The more I learn about Git, the more terrified I become of Linus’s genius, should he ever decide to stop focussing on kernel development and turn to world domination.
@jialx7 ай бұрын
how have I just today learnt about 'tree' command. wtf
@mo0lo0ko0 Жыл бұрын
Superb 🙌
@Gabriel9655194372 жыл бұрын
how can i configure my console to look the same?
@mfaani3 жыл бұрын
This is the best git-internal talk I've seen. Is this a Harvard course? Or just a one-off session?
@tarikzaki54423 жыл бұрын
i recommend this one too , it was very helpful to me kzbin.info/www/bejne/hmfNdWxsa8-tos0
@grohan076 жыл бұрын
Which shell is this is he using zsh ?
@sandeepjswl16 жыл бұрын
Same question
@ritamdey62626 жыл бұрын
Rohan Gupta Yeah!! It looks like zsh
@grohan076 жыл бұрын
Es roy yes confirmed plus the oh-my-zsh framework with thr bira theme
@AndersJackson6 жыл бұрын
Would guess bash, as that is the default for Mac. (-h to ls(1) gives human adopted sizes reported by ls)
@rabingaire6 жыл бұрын
I achieved the same style of the terminal with zsh, oh-my-zsh and gnzh theme of oh-my-zsh you guys do need to change that symbol to circle as default theme has an arrow as a symbol
@ssksarraju2 жыл бұрын
Which tool did you use for mouse cursor spotlight effect?
@Machina42 Жыл бұрын
Mouseposé for Mac PointerFocus for Windows Projectuer for Linux
@tarikzaki54423 жыл бұрын
what is the prompt theme that you're using? and this shell is bash ,fish or something else?
@pointerish2 жыл бұрын
Looks like OhMyZsh, but I might be wrong.
@charbelsarkis35675 жыл бұрын
audio is somewhat low
@guiller23713 жыл бұрын
"No network activity"
@qkcb3 жыл бұрын
31:05
@iansullivan97386 жыл бұрын
I wonder if comedians use github for joke development
@antilogism3 жыл бұрын
There is a charge for private repos but it should work. It works fantastic for any text project including scripts. Helps on solo projects but would be invaluable when working collaboratively with a few or many authors/writers/producers. Deals well with markup like Markdown, LaTeX, Docbook, Lout, troff/groff/nroff, HTML, etc. so the document has consistent formatting throughout.
@dakoderii4221 Жыл бұрын
I find it hilarious that Git changed "master" to "main" to be politically correct but still has a command called "reflog" 🤔😂