Skip to content

Latest commit

 

History

History
63 lines (32 loc) · 1.13 KB

git-review.md

File metadata and controls

63 lines (32 loc) · 1.13 KB

Describe with your own words what the following command is doing or answer the question?

  1. git add -A

  2. git commit -m “My first commit”

  3. git diff file.txt

  4. git diff --staged

  5. git diff HEAD~2 HEAD

  6. git push origin master

  7. git pull origin master

  8. git stash --hunk

  9. git stash drop stash@{1}

  10. git fetch origin

  11. git checkout 56789

  12. git branch

  13. git checkout -b feature_branch

  14. git merge feature_branch

  15. git branch -d useless_branch

  16. git log --oneline

  17. git rm file.txt

  18. git remote -v

  19. What is a "remote"?

  20. What is "origin"?

  21. What is "master"?

  22. What is a "branch"?

  23. What is the difference between adding and committing?

  24. What is the difference between pulling and fetching?

  25. What is the difference between cloning and forking?

  26. What is the difference between origin and upstream?

  27. What is the difference between an untracked and unstaged file?

  28. What is HEAD?

  29. What is difference between git log and git reflog?

  30. What is the difference between local and remote repository?

  31. What is the difference between rebasing and merging?