Git Amend Tutorial: Rewrite Git History
What is the Git amend command, and how do you use it? Git amend allows you to both rewrite the previous commit's message, and/or add files to that commit you may have forgotten. Amend is a form of editing or updating Git history. In this tutorial I'll explain how to use amend to rewrite git history (including the most used commands "git commit --amend" and "git commit --amend -m"). As always, I'll illustrate the concepts with live animations alongside the actual commands.
WRITTEN ARTICLE & REFERENCE: https://www.themoderncoder.com/rewriting-git-history/#amending-commits
GIT STARTER GUIDES: https://www.themoderncoder.com/git/
CHAPTERS
0:00 Intro
0:18 Git amend use-cases
0:44 Git amend: adding files to the previous commit
2:00 Important amend caveat
2:38 Use Git amend to rewrite (or update) a commit message
3:04 Altering older commits, and editing Git history
MY TECH
2020 M1 MacBook Air (I have the 512GB variant): https://amzn.to/3TTIBsE
AirPods Pro: https://amzn.to/3sRLUo5
Chair: https://amzn.to/3zJI9Fa
Gaming headset: https://amzn.to/3zwbT8i
Headphones (newer model): https://amzn.to/3Ub5reT
Keyboard: https://amzn.to/3FOOOC7
Mouse: https://amzn.to/3WhMFV9
Monitor: https://www.dell.com/en-us/work/shop/...
Monitor arm (newer model): https://amzn.to/3gXnlUa
Webcam: https://amzn.to/3zxxwp0
TECH ACCESSORIES
Laptop stand: https://amzn.to/3NuyqZ5
Mouse pad/mat: https://amzn.to/3U9QFVO
KVM switch: https://amzn.to/3gZmpP0
PC case: https://amzn.to/3Fx4Hg5
Under desk drawer: https://amzn.to/3WloFAo
VIDEO GEAR
Camera: https://amzn.to/3WkbiRe
Lens: https://amzn.to/3zxiTC4
Microphone: https://amzn.to/3SSUoWE
Main key light: https://amzn.to/3WhZbny
Secondary light: https://amzn.to/3fpRefx
Some of the links above are affiliate links which means, at no extra cost to you, I will make a small commission if you click them and make a qualifying purchase. Thanks for supporting the channel.
MUSIC CREDITS
Music from Uppbeat (free for Creators!):
https://uppbeat.io/t/danijel-zambo/stardust
License code: IWXOQLHLMEZAFPVT
ICON CREDITS
Band Aid icon created by Konkapp - Flaticon
ABOUT ME
An experienced tech professional with experience including software engineering management, and software engineering. Formerly at Amazon for over 6 years, and currently living in NYC.
FOLLOW
Blog: https://www.themoderncoder.com
Twitter: https://twitter.com/themoderncoder
#git #linux #programming #github
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Git Amend Tutorial: Rewrite Git History», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.