Advertisement
losmi93

GIT KOMANDE

Mar 22nd, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1.  
  2. branch ???
  3.  
  4. crveno markorani fajlovi
  5.  
  6.  
  7.  
  8. KONFIGURACIJA:
  9.  
  10. git config --global user.name "losmi"
  11. git config --global user.email "milos.nik.93@gmail.com"
  12.  
  13. git add .
  14. git commit -m "comment"
  15. git push
  16.  
  17. ---------------------------------------------------------------------------------------------------------------------------------------
  18. reset adddovanja
  19.  
  20.  
  21. git reset filename.txt
  22. Will remove a file named filename.txt from the current index, the "about to be committed" area, without changing anything else.
  23. To undo git add . use git reset (no dot).
  24.  
  25. -------------------------------------------------------------
  26. …or create a new repository on the command line
  27.  
  28. echo "# PWM" >> README.md
  29. git init
  30. git add README.md
  31. git commit -m "first commit"
  32. git remote add origin https://github.com/milosnikolic93/PWM.git
  33. git push -u origin master
  34. …or push an existing repository from the command line
  35.  
  36. git remote add origin https://github.com/milosnikolic93/PWM.git
  37. git push -u origin master
  38. ------------------------------------------------------------------------------------
  39. https://git-scm.com/book/en/v2/Git-Commands-Basic-Snapshotting
  40. -------------------------------------------------------------------------------------
  41. http://stackoverflow.com/questions/9529078/how-do-i-use-git-reset-hard-head-to-revert-to-a-previous-commit
  42. https://git-scm.com/docs/git-reset
  43.  
  44.  
  45. git init gitproject
  46. git status
  47. git add .
  48. git rm --cashed FILE.txt
  49. git commit -m "initial commit"
  50. git log
  51. git commit -m "start tracking text.txt"
  52. git diff
  53. git diff -cashed
  54.  
  55. git log --oneline
  56. git commit -a -m "msg"
  57. git status -s
  58. git reset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement