2015년 3월 8일 일요일

Git (version control system) - commands

//create git
git config --global user.name "Your Name"
git config --global user.name "GraySH"
git config --global user.email res18zt5@gmail.com
git config --list
git remote -v

//set remote address for git
git remote add origin git@github.com:GraySH/CSH_CODE_WORRIOR.git
git remote set-url origin git@github.com:GraySH/CSH_CODE_WORRIOR.git

//commands
git status
git branch


//Adding files
git add *
git commit -m "Version 000"

//replace local changes
git fetch origin
git reset --hard origin/master
##
git checkout -- filename


//create branch local
git checkout -b V_000

//delete branch local
git branch -d the_local_branch


//adding branch to remote server
git push  remote-name branch-name
git push origin V_001

//Delete branch from remote server
git push remote-name :branch-name
git push origin :V_000

sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...