Back to All Flashcards
Card 1 of 12 0%
0Hard
0Learning
0Know It
Question
Loading…
Click to reveal answer
Answer
All 12 Cards
#1
Q: Start a repository
A: git init
#2
Q: Copy a repository
A: git clone <url>
#3
Q: Stage all changes
A: git add .
#4
Q: Commit staged changes
A: git commit -m "message"
#5
Q: See changes
A: git status
#6
Q: Create and switch to a branch
A: git checkout -b <name>
#7
Q: Push to remote
A: git push
#8
Q: Fetch and merge
A: git pull
#9
Q: Show history
A: git log
#10
Q: Merge a branch
A: git merge <branch>
#11
Q: Undo unstaged changes to a file
A: git restore <file>
#12
Q: Save work temporarily
A: git stash
Explore All 125 Free Decks