Git Index (Staging area)

Absolute Code
Absolute Code
437 بار بازدید - 3 سال پیش - The staging area or index
The staging area or index is one of three places for your files in git, if you want to save your changes into the git repository you should follow these steps:
1- Create the change (in the working tree)
2- Add the change to the staging area
3- Commit your changes to the git repository
In this video, we'll answer some basic questions about the staging area like "Why do we need to use the staging area?" and then we'll learn and use all the commands you may see or use in your daily works in git, between the working tree and the staging area.

Timestamps:
0:00 - Intro
0:25 - Prerequisites
0:46 - Create a git directory
3:02 - git status
3:55 - Add files to the staging area (git add)
4:19 - Git three areas (working tree, staging area, git repository)
7:45 - Check what we have in the staging area (git ls-files)
9:45 - Remove files from the staging area (git rm --cached)
10:50 - git advanced status
13:40 - git diff
17:40 - git advanced add (git add -p)
19:38 - git restore
20:19 - git mv
22:23 - git rm
23:27 - git clean
26:45 - Outro

Links:
Github gist: https://gist.github.com/Qorbanzadeh/9...
Download git from the official website: https://git-scm.com/download
Install or upgrade git on your machine: How To Install And Configure GIT
3 سال پیش در تاریخ 1400/05/26 منتشر شده است.
437 بـار بازدید شده
... بیشتر