'create a new repository'에 해당되는 글 1건

  1. 2015.10.18 Git 명령어 정리

Git 명령어 정리

|


GUI가 편하긴 하지만 내가 원하는 기능을 찾기 위해 이리저리 클릭을 해야 할 경우가 있다.

그럴 경우엔 차라리 명령어로 처리하는 것이 간편하다.




Commit


// If multiple -m options are given, their values are concatenated as separate paragraphs.

$ cd $GitRepoDIR

$ git commit -m "COMMIT_MESSAGE"





Push


$ cd $GitRepoDIR

$ git remote add origin https://github.com/kanziwoong/NEW_REPOSITORY_NAME.git

$ git push -u origin master





Pull


$ cd $GitRepoDIR

$ git pull





Create a new repository on the command line


$ cd $GitRepoDIR

$ echo # NEW_REPOSITORY_NAME >> README.md

$ git init

$ git add README.md

$ git commit -m "first commit"

$ git remote add origin https://github.com/kanziwoong/NEW_REPOSITORY_NAME.git

$ git push -u origin master







And


prev | 1 | next