Advertisement
evilqubit

git commands

Apr 24th, 2013
174
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. $ ssh -T billy.anyteen@github.com
  41. -----------------------------------
  42. ssh-add -l
  43. -----------------------------------
  44. git config --global user.name "Example Surname"
  45. git config --global user.email "your.email@gmail.com"
  46. -----------------------------------------------------
  47. git reset --soft HEAD^
  48. git reset --hard HEAD in case of commit
  49. ------------------------------------
  50. git checkout --filename
  51. ----------------------------
  52. git reset head --filename in case of staging
  53. ----------------------------
  54. git commit -a -m (add and commit )
  55. ----------------------
  56. git commit --amend
  57. -------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement