1 add SSH key
2 build remote repository
3 clone it to local file
git clone gitlab@XXX.com.cn:XXX.git
4 move the data into the file
5 check status
git status
6 add what you want upload
git add XXX_file
7 set identity
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
8 commit
git commit -m "XXX_file"
9 upload
git push origin master
如果你在别的电脑上对lab中代码有过更改,那么在push之前,需要先
git pull origin master