How To Track, Stage, Diff, Commit and Ignore Files in Git

Published: 18 September 2019
on channel: Just Another Dang How To Channel
947
4

On these video series, we are going to learn and master using Git. A distributed version control system.

In Part 2 we will touch a little bit more on where the git configuration is found. We will look into how Git records and track changes to files. Add new files to track and commit. Use Diff to compare changes between staged and unstaged files and also how to compare from the last commit. And a learn how to ignore files from being tracked.

Link for core.editor


To show where git configs are found
git config --list --show-origin

level
/usr/local/git/etc/gitconfig


level
~/.gitconfig

working directory
.git/config


Visual Studio Code


Compare to staged file to previous commit
git diff --cached

Sample .gitignore templates based on your project


Watch video How To Track, Stage, Diff, Commit and Ignore Files in Git online without registration, duration 15 minute 47 second in high hd quality. This video was added by user Just Another Dang How To Channel 18 September 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 947 once and liked it 4 people.