1.克隆空的proj_a
2.把需要上传的代码复制到改仓库下
keven@gitserver:~/proj_a$ ls
SVB_JADE_New
keven@gitserver:~/proj_a$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
SVB_JADE_New/
nothing added to commit but untracked files present (use "git add" to track)
3.git add/git commit/git push
keven@gitserver:~/proj_a$ git add .
keven@gitserver:~/proj_a$ git commit -m "first commit"
keven@gitserver:~/proj_a$ git push
原文:https://www.cnblogs.com/dwtmjps/p/10615783.html