localhost:Files zengguang$ ssh -T git@git.网址 Welcome to GitLab, **!
从github中克隆项目
1
git clone git@github.com:USERNAME/PROJECTNAME.git
进目录中查看git状态
1 2 3 4 5 6 7 8 9 10 11 12
localhost:Files zengguang$ git status
On branch master Untracked files: (use "git add <file>..." to include in what will be committed)
.DS_Store others/ipscan-mac-3.4.1.zip新上传文件名字
others/wifi explorer.dmg
nothing added to commit but untracked files present (use "git add" to track)
添加将要上传的文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14
localhost:tongxinFiles zengguang$ git add others/ipscan-mac-3.4.1.zip localhost:tongxinFiles zengguang$ git add others/wifi\ explorer.dmg localhost:tongxinFiles zengguang$ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage)
new file: others/ipscan-mac-3.4.1.zip new file: others/wifi explorer.dmgadd
Untracked files: (use "git add <file>..." to include in what will be committed)