Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- branch ???
- crveno markorani fajlovi
- KONFIGURACIJA:
- git config --global user.name "losmi"
- git config --global user.email "milos.nik.93@gmail.com"
- git add .
- git commit -m "comment"
- git push
- ---------------------------------------------------------------------------------------------------------------------------------------
- reset adddovanja
- git reset filename.txt
- Will remove a file named filename.txt from the current index, the "about to be committed" area, without changing anything else.
- To undo git add . use git reset (no dot).
- -------------------------------------------------------------
- …or create a new repository on the command line
- echo "# PWM" >> README.md
- git init
- git add README.md
- git commit -m "first commit"
- git remote add origin https://github.com/milosnikolic93/PWM.git
- git push -u origin master
- …or push an existing repository from the command line
- git remote add origin https://github.com/milosnikolic93/PWM.git
- git push -u origin master
- ------------------------------------------------------------------------------------
- https://git-scm.com/book/en/v2/Git-Commands-Basic-Snapshotting
- -------------------------------------------------------------------------------------
- http://stackoverflow.com/questions/9529078/how-do-i-use-git-reset-hard-head-to-revert-to-a-previous-commit
- https://git-scm.com/docs/git-reset
- git init gitproject
- git status
- git add .
- git rm --cashed FILE.txt
- git commit -m "initial commit"
- git log
- git commit -m "start tracking text.txt"
- git diff
- git diff -cashed
- git log --oneline
- git commit -a -m "msg"
- git status -s
- git reset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement