Advertisement
evilqubit

Git commands

Mar 10th, 2013
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. git checkout --ours . # checkout our local version of all files
  2. git add -u # mark all conflicted files as merged
  3. git commit # commit the merge
  4. ---------------------------
  5. git config --list
  6. ---------------------
  7. git remote -v
  8. remote set-url <name> <new-url>
  9. -----------------------------------
  10. git init
  11. ------------
  12. git commit -m
  13. -----------------
  14. git reset unwantedstaged.txt
  15. --------------------------
  16. git add
  17. --------------
  18. git push
  19. --------------
  20. git checkout
  21. ----------------
  22. git branch
  23. -------------
  24. git diff
  25. ----------
  26. git remote add origin
  27. ----------------
  28. git log
  29. ------------
  30. git reflog
  31. -----------------
  32. git show -h
  33. ------------
  34. git k
  35. -----------
  36. git status
  37. ------------
  38. git reset
  39. -------------
  40. git fetch upstream
  41. -------------
  42. git merge upstream/master
  43. --------------------------
  44. $ ssh -T billy.anyteen@github.com
  45. -----------------------------------
  46. ssh-add -l
  47. -----------------------------------
  48. git config --global user.name "Example Surname"
  49. git config --global user.email "your.email@gmail.com"
  50. -----------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement