Coding/Misc

GIT

smores 2018. 5. 19. 05:20

https://www.youtube.com/watch?v=HVsySz-h9r4&t=631s

http://rogerdudler.github.io/git-guide/



$ git --version

$ git config --global user.name "my name"

$ git config --global user.email "my email@...."

$ git config --list

$ git help verb


$ git init

$ git status


$ .gitignore     # has file names which are ignored by git version control

  ex)

  .DS_Store

  .project

  *.pyc


$ git add -A

$ git add filename

gi

$ git reset filename # remove the file from staging area


$ git commit -m "comment"   # commit with the comment, do after add to staging area by git add command


$ git log


$ git clone <url> <where to clone>


$ git remote -v

$ git branch -a


after modification


$ git diff

$ git add -A

$ git commit -m "comment"


$ git pull origin master   # pull other's change implement to mine

$ git push origin master   # push my change into remote repository (do after add, commit)


'Coding > Misc' 카테고리의 다른 글

Most Popular Programming Languages  (0) 2019.10.15
최근 인기 프로그래밍 언어들  (0) 2019.09.12
(Link) R programming  (0) 2017.10.24
batch menu selection  (0) 2017.10.10
R vs. Python  (0) 2017.10.06