Create & Commit First Time Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How do you make a git repository?

A

git init

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

How do you copy a git repo?

A

git clone

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

What are the steps of creating commiting a git

A

Git init
Git add
Git commit -m””

Then git commit -am””

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

How do you create a branch?

A

Git branch

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

How do you change between branches?

A

Git checkout

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

What are you doing when you branch?

A

When you branch you’re creating a new

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

How to add a commit initially?

A

git add then git commit

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

How to short cut an add, commit, and message?

A

git commit -am “”

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

How do you make a branch?

A

git branch

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

How do you see all your branches?

A

git branch

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

How to switch to a branch?

A

git checkout

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

Shortcut to make branch and put yourself into it if it’s not already made?

A

git checkout -b

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

How to merge and old file and a new file?

A

git merge /

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

What does this mean: echo “Earth’s Moon”&raquo_space; locations.txt

A

You’re setting content (Earth’s Moons) into a new file named locations.txt

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

How do you push to the server. (Remember, you need to clone from a serve for you want to push to a server..)

A

git push origin master (So when we copied the repo, it was from a server. So it’s original state is on the server. )

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

How do you delete a branch

A

git branch -d