git upload native code to gitlab

There git bash on the premise that computer  

1. In the source code root directory, right git bash here  

 

2. Command Line

--global user.name config git "less"
git config --global user.email "[email protected]"
git the init
git the Add Remote SSH Origin: // git @ domain /tyshawn/sdap1.git
git the Add (attention. after the dot space.)
Git the commit -m "source code" (-m parameter followed by a commit way of illustration, to prevent Please enter the commit message for your changes occur. Lines starting, a subsequent push message)
Git push -u origin master

Guess you like

Origin blog.csdn.net/yss1019/article/details/91974804