Git/Github Flashcards

1
Q

What does git status do?

A

Git Status is showing us what’s called our working tree and staging area. Allows us to see files we want to commit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the different between git config –global user.name “Korey McGeehan” vs git config –system user.name “Korey McGeehan”

A

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 )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does .gitignore do?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly