Git And Github Flashcards

1
Q

When I want to work on a project and I need to update the master branch with any changes that my colleague must have done what is the command that I would use

A

Git pull origin master

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

What is the command to create a new branch

A

Git branch

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

What is the command to add changes for a commit

A

Git add .

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

What is the command for switching between branches

A

Git checkout

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

What is the command to know your working branch

A

Git branch

And where the asterisk * sign is that is your working branch

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

What is the command to make a commit

A

Git commit -m “message for commiting”

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

What is the command to push a commit to the remote repository

A

Git push origin

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

What is the command to check your work status to know if changes have been made

A

Git status

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

What is the command to merge your new branch with your master branch

A

On your master branch type git merge

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

What is git

A

This is an open source version control system at the heart of GitHub.

Git is responsible for everything Git-hub related that happens locally on our computer

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

How do you clone your repository on your local computer

A

Git clone https://@github.com//

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

How to create your git identify

A

Git config –global user.name

Git config –global user.email

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

How to delete a git branch

A

Git branch -d

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

How do you push a branch git

A

Git push -u origin

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

How to merge in git

A

Git merge

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