http://billy3321.blogspot.tw/2009/02/github-howto.html
詳細內容:
- Create repository on Github (Remote) Proj_name
- git
- Create local directory Proj_name > commit files > push commit
$ mkdir Proj_name
$ cd Proj_name
$ git init
$ touch README
$ git add README
# state your README file, adding it to the list of files to be
commited.
$ git commit -m "commit
msg"
# Creates a
remote named "origin" pointing at your GitHub repo
$ git push origin master
#
Sends your commits in the "master" branch to GitHub
預設
branch 叫 master, 預設 remote 叫 origin
- Github setup
常用 git config / status / log / clone
<url> [local_name]
Git的基本功(status, add, commit, log, .gitignore)
沒有留言 :
張貼留言