Contribute to an existing branch on GitHub Flashcards

1
Q

change into the repo directory

A

cd repo

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

Update all remote tracking branches, and the currently checked out branch

A

git pull

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

Change into the existing branch called feature-a

A

git checkout feature-a

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

Make changes, for example, edit file1.md using the text editor

Stage the changed file

A

git add file1.md

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

Take a snapshot of the staging area

A

git commit -m “edit file1.md”

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

Push changes to github

A

git push

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