Git Internals by John Britton of GitHub - CS50 Tech Talk

  Рет қаралды 73,009

CS50

CS50

Күн бұрын

Пікірлер: 63
@nickr753
@nickr753 3 жыл бұрын
ls -h is not hidden, it’s “human readable file sizes”. -a is all files (including hidden) and -l is long form
@epicgameryt4052
@epicgameryt4052 Жыл бұрын
that explains why ls -h just didnt work:)) but ls -la did work
@epicgameryt4052
@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
@AryanK1511 Ай бұрын
One of the best videos out there! Thank you so much for this content!!
@nneddenn6207
@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
@johndbritton Жыл бұрын
Glad you liked the video!
@Pheenam
@Pheenam 4 жыл бұрын
Camera work is great
@RoshanGupta-fk9wi
@RoshanGupta-fk9wi 2 ай бұрын
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.Heydarchi
@M.H.Heydarchi 3 жыл бұрын
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.
@armaghanasghar2911
@armaghanasghar2911 4 жыл бұрын
@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
@antilogism
@antilogism 3 жыл бұрын
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.
@Lambdaphile
@Lambdaphile 4 жыл бұрын
Remember your first *git init* command 10 years ago? Started from the init and now we're here! lol
@cusematt23
@cusematt23 Жыл бұрын
Great video thanks John. You are a very good and clear speaker.
@bs3973
@bs3973 Жыл бұрын
This video changed my life, I swear by it 😭
@jdeep7
@jdeep7 2 жыл бұрын
for some reason, he looks like Howard Wolowitz
@raheelmasood8656
@raheelmasood8656 8 ай бұрын
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.
@countdigi
@countdigi 4 ай бұрын
Git from the bits up is another good talk which shows behind the scene: kzbin.info/www/bejne/g4qzZmmHf9V3qJY
@sidducs
@sidducs Жыл бұрын
This is the best git tutorial on the planet
@mynameisabcd05
@mynameisabcd05 4 жыл бұрын
Thanks Linus Torvalds
@澳贼
@澳贼 9 ай бұрын
so deep and clear, thank you!
@ElboxD
@ElboxD 2 жыл бұрын
31:44 really shows how awesome git is.
@cacanantes
@cacanantes Жыл бұрын
Awesome presentation. Thanks for sharing.
@dazhouliu9437
@dazhouliu9437 6 жыл бұрын
Git's internal design is similar to block chain.
@lakshminarayanannandakumar1286
@lakshminarayanannandakumar1286 2 жыл бұрын
John Britton reminds me of Richard Henricks from Silicon Valley :)
@Tarsonis42
@Tarsonis42 Жыл бұрын
Well, actually... John Britton reminds me of Howard Wolowitz from TBBT :)
@billtensus
@billtensus 7 ай бұрын
I cry every time I see someone using ATOM. That was my favourite text editor. MS $%&u .
@sbhhdp
@sbhhdp 4 жыл бұрын
How do I set up my terminal like his
@DannySamuel
@DannySamuel 3 жыл бұрын
Install Oh my zsh
@tarikzaki5442
@tarikzaki5442 3 жыл бұрын
@@DannySamuel i'm using the fish shell and oh my fish , what is the name of this theme?
@karthickpn450
@karthickpn450 2 жыл бұрын
@@tarikzaki5442 bira
@kscd009
@kscd009 4 жыл бұрын
Would have been great if covered merge also
@mahmoudrezaizadiyar9425
@mahmoudrezaizadiyar9425 3 жыл бұрын
خیلی مردی ، دمت گرم، واقعا مطلب مشتی بود. لوتی گری کردی که یاد دادی داداش.
@ehsanmon
@ehsanmon Жыл бұрын
خخخخخخخخ
@tarikzaki5442
@tarikzaki5442 3 жыл бұрын
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"
@AndreySem
@AndreySem 5 жыл бұрын
топовое видео по гиту
@seanys
@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.
@jialx
@jialx 7 ай бұрын
how have I just today learnt about 'tree' command. wtf
@mo0lo0ko0
@mo0lo0ko0 Жыл бұрын
Superb 🙌
@Gabriel965519437
@Gabriel965519437 2 жыл бұрын
how can i configure my console to look the same?
@mfaani
@mfaani 3 жыл бұрын
This is the best git-internal talk I've seen. Is this a Harvard course? Or just a one-off session?
@tarikzaki5442
@tarikzaki5442 3 жыл бұрын
i recommend this one too , it was very helpful to me kzbin.info/www/bejne/hmfNdWxsa8-tos0
@grohan07
@grohan07 6 жыл бұрын
Which shell is this is he using zsh ?
@sandeepjswl1
@sandeepjswl1 6 жыл бұрын
Same question
@ritamdey6262
@ritamdey6262 6 жыл бұрын
Rohan Gupta Yeah!! It looks like zsh
@grohan07
@grohan07 6 жыл бұрын
Es roy yes confirmed plus the oh-my-zsh framework with thr bira theme
@AndersJackson
@AndersJackson 6 жыл бұрын
Would guess bash, as that is the default for Mac. (-h to ls(1) gives human adopted sizes reported by ls)
@rabingaire
@rabingaire 6 жыл бұрын
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
@ssksarraju
@ssksarraju 2 жыл бұрын
Which tool did you use for mouse cursor spotlight effect?
@Machina42
@Machina42 Жыл бұрын
Mouseposé for Mac PointerFocus for Windows Projectuer for Linux
@tarikzaki5442
@tarikzaki5442 3 жыл бұрын
what is the prompt theme that you're using? and this shell is bash ,fish or something else?
@pointerish
@pointerish 2 жыл бұрын
Looks like OhMyZsh, but I might be wrong.
@charbelsarkis3567
@charbelsarkis3567 5 жыл бұрын
audio is somewhat low
@guiller2371
@guiller2371 3 жыл бұрын
"No network activity"
@qkcb
@qkcb 3 жыл бұрын
31:05
@iansullivan9738
@iansullivan9738 6 жыл бұрын
I wonder if comedians use github for joke development
@antilogism
@antilogism 3 жыл бұрын
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
@dakoderii4221 Жыл бұрын
I find it hilarious that Git changed "master" to "main" to be politically correct but still has a command called "reflog" 🤔😂
@miko007
@miko007 Жыл бұрын
ehm...
How GIT works under the HOOD?
16:01
Tech With Nikola
Рет қаралды 205 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 134 МЛН
Git and GitHub - CS50 Beyond 2019
1:05:59
CS50
Рет қаралды 111 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 147 М.
Git Internals -  How Git Works - Fear Not The SHA!
31:23
GitLab
Рет қаралды 119 М.
How to be a git expert
46:26
Floating Little Leaves of Code
Рет қаралды 172 М.
An Introduction to Git and GitHub by Brian Yu
38:27
CS50
Рет қаралды 226 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Git From the Bits Up
55:45
InfoQ
Рет қаралды 96 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 252 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН