This is the first episode in a 3 video series on git for beginners. We are using the git command in the terminal and in parallel the git client inside Visual Studio Code. For adding the missing functionality to VSCode, we are installing the GitLens extension.
In this episode we will use git locally on a single branch, we will initialize the repository, create a few commits and look through the git history. We'll see how we can revert the entire repository to a previous version, then we'll also look into git ignore and git stashes.
Notes:
https://github.com/titus58/youtube-tu...
Chapters:
00:00 Introduction
00:58 What is Git
02:15 What is version control
03:40 What is distributed version control
07:14 Initialize with git init
09:31 Git status - repository status
10:40 Adding files to the repository with git add
12:25 Creating the first commit
12:39 Configure user information before the first commit
15:04 Creating commits with modified files
16:50 Using the default git editor for commit messages
17:50 Changing the git editor to Visual Studio Code
19:38 See the git commit history with git log
21:49 Detailed commit view with git show
23:45 See previous version of a file with git show
25:25 Git history in Visual Studio Code
27:04 Using the GitLens extension in Visual Studio Code
28:42 Seeing file differences with git diff
30:29 Stage multiple files at a time with git add
32:32 Blacklist files with .gitignore files
36:02 See history a file line by line with git blame
38:12 Git blame in Visual Studio Code using GitLens
39:14 Revert repository to previous version using git revert
42:53 Revert a range of commits with git revert
46:41 Other file operations: deletions with git rm and moves with git mv
51:00 Save work in progress with git stash
56:02 Apply stashes with git stash apply
58:04 Dealing with merge conflicts when applying stashes
01:01:32 Using git stash in Visual Studio Code
01:02:35 Recap
Смотрите видео Git Course 1/3: Working locally in a single branch онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Vladsave Coding 29 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 158 раз и оно понравилось 9 людям.