Advertisement
evilqubit

git commands

Apr 24th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. git config --list
  2. ---------------------
  3. git remote -v
  4. remote set-url <name> <new-url>
  5. -----------------------------------
  6. git init
  7. ------------
  8. git commit -m
  9. -----------------
  10. git reset unwantedstaged.txt
  11. --------------------------
  12. git add
  13. --------------
  14. git push
  15. --------------
  16. git checkout
  17. ----------------
  18. git branch
  19. -------------
  20. git diff
  21. ----------
  22. git remote add origin
  23. ----------------
  24. git log
  25. ------------
  26. git reflog
  27. -----------------
  28. git show -h
  29. ------------
  30. git k
  31. -----------
  32. git status
  33. ------------
  34. git reset
  35. -------------
  36. git fetch upstream
  37. -------------
  38. git merge upstream/master
  39. --------------------------
  40. -----------------------------------
  41. ssh-add -l
  42. -----------------------------------
  43. git config --global user.name "Example Surname"
  44. git config --global user.email "[email protected]"
  45. -----------------------------------------------------
  46. git reset --soft HEAD^
  47. git reset --hard HEAD in case of commit
  48. ------------------------------------
  49. git checkout --filename
  50. ----------------------------
  51. git reset head --filename in case of staging
  52. ----------------------------
  53. git commit -a -m (add and commit )
  54. ----------------------
  55. git commit --amend
  56. -------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement