Contribute to an existing branch on GitHub Flashcards
1
Q
change into the repo
directory
A
cd repo
2
Q
Update all remote tracking branches, and the currently checked out branch
A
git pull
3
Q
Change into the existing branch called feature-a
A
git checkout feature-a
4
Q
Make changes, for example, edit file1.md
using the text editor
Stage the changed file
A
git add file1.md
5
Q
Take a snapshot of the staging area
A
git commit -m “edit file1.md”
6
Q
Push changes to github
A
git push