Skip to content
Hong, Jian-Ching edited this page Oct 31, 2016 · 3 revisions

##push an existing repository from the command line

git remote add origin https://github.com/user/repo.git
git push -u origin master

Ref: Adding a remote

##A collection of .gitignore templates

##只想要最新的資料,不需要版控舊版資本資料時,可以利用 depth 參數,像是

git clone --depth 1 https://github.com/github/gitignore.git

Clone this wiki locally