Git/Github Flashcards
What does git status do?
Git Status is showing us what’s called our working tree and staging area. Allows us to see files we want to commit.
What is the different between git config –global user.name “Korey McGeehan” vs git config –system user.name “Korey McGeehan”
Using the –global flag the user.name is only changed in the current user-wide configuration file. ( ~/.gitconfig )
Using the –system flag the user.name is changed to all users on this computer ( etc/.gitconfig )
What does .gitignore do?
This file is a list of files and/or directories that you do not want included in your repository. Git will not allow you to add any of the files referenced in .gitignore to your repository. The .gitignore file lives in the current git repo’s directory and paths to ignored files and directories should be relative from that directory.