Тёмный

Git Internals by John Britton of GitHub - CS50 Tech Talk 

CS50
Подписаться 1,9 млн
Просмотров 69 тыс.
50% 1

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@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 11 месяцев назад
that explains why ls -h just didnt work:)) but ls -la did work
@epicgameryt4052
@epicgameryt4052 11 месяцев назад
cs50 is genuinely the best thing out there on youtube. appreciate you all for this free lesson! really made my saturday more fun
@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.
@RoshanGupta-fk9wi
@RoshanGupta-fk9wi 7 дней назад
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
@nneddenn6207
@nneddenn6207 10 месяцев назад
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 10 месяцев назад
Glad you liked the video!
@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.
@Pheenam
@Pheenam 4 года назад
Camera work is great
@Lambdaphile
@Lambdaphile 4 года назад
Remember your first *git init* command 10 years ago? Started from the init and now we're here! lol
@jdeep7
@jdeep7 2 года назад
for some reason, he looks like Howard Wolowitz
@mynameisabcd05
@mynameisabcd05 4 года назад
Thanks Linus Torvalds
@bs3973
@bs3973 Год назад
This video changed my life, I swear by it 😭
@cusematt23
@cusematt23 10 месяцев назад
Great video thanks John. You are a very good and clear speaker.
@sidducs
@sidducs Год назад
This is the best git tutorial on the planet
@raheelmasood8656
@raheelmasood8656 6 месяцев назад
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 2 месяца назад
Git from the bits up is another good talk which shows behind the scene: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MYP56QJpDr4.html
@ElboxD
@ElboxD 2 года назад
31:44 really shows how awesome git is.
@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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-P6jD966jzlk.html
@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 10 месяцев назад
Well, actually... John Britton reminds me of Howard Wolowitz from TBBT :)
@澳贼
@澳贼 7 месяцев назад
so deep and clear, thank you!
@cacanantes
@cacanantes Год назад
Awesome presentation. Thanks for sharing.
@mahmoudrezaizadiyar9425
@mahmoudrezaizadiyar9425 3 года назад
خیلی مردی ، دمت گرم، واقعا مطلب مشتی بود. لوتی گری کردی که یاد دادی داداش.
@ehsanmon
@ehsanmon Год назад
خخخخخخخخ
@billtensus
@billtensus 5 месяцев назад
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
@AndreySem
@AndreySem 5 лет назад
топовое видео по гиту
@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"
@mo0lo0ko0
@mo0lo0ko0 Год назад
Superb 🙌
@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
@jialx
@jialx 5 месяцев назад
how have I just today learnt about 'tree' command. wtf
@Gabriel965519437
@Gabriel965519437 2 года назад
how can i configure my console to look the same?
@tarikzaki5442
@tarikzaki5442 3 года назад
what is the prompt theme that you're using? and this shell is bash ,fish or something else?
@jl_woodworks
@jl_woodworks 2 года назад
Looks like OhMyZsh, but I might be wrong.
@ssksarraju
@ssksarraju 2 года назад
Which tool did you use for mouse cursor spotlight effect?
@Machina42
@Machina42 10 месяцев назад
Mouseposé for Mac PointerFocus for Windows Projectuer for Linux
@qkcb
@qkcb 3 года назад
31:05
@guiller2371
@guiller2371 2 года назад
"No network activity"
@charbelsarkis3567
@charbelsarkis3567 5 лет назад
audio is somewhat low
@dakoderii4221
@dakoderii4221 Год назад
I find it hilarious that Git changed "master" to "main" to be politically correct but still has a command called "reflog" 🤔😂
@iansullivan9738
@iansullivan9738 5 лет назад
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.
@miko007
@miko007 Год назад
ehm...
Далее
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,1 млн
An Introduction to Git and GitHub by Brian Yu
38:27
Просмотров 224 тыс.
Ничего не делаю всё видео 😴
00:33
НОВЫЙ РОЛИК УЖЕ НА КАНАЛЕ!
00:14
Просмотров 432 тыс.
How GIT works under the HOOD?
16:01
Просмотров 197 тыс.
Is Computer Science still worth it?
20:08
Просмотров 230 тыс.
Git Internals - Git Objects
7:10
Просмотров 31 тыс.
Git From the Bits Up
55:45
Просмотров 96 тыс.
Should you learn C++?? | Prime Reacts
20:29
Просмотров 365 тыс.
Git Is Awful | Prime Reacts
23:10
Просмотров 204 тыс.
Gitlab DELETING Production Databases | Prime Reacts
17:27