1 To enter the storage location of the project folder
cd Desktop
2 clone a remote repository to local
git clone https://gitee.com/kingstudy/Test.git
3 executing the above project code and then dragged to the local warehouse NOTE: Do not drag .git hidden files come in conflict otherwise it will create a repository
4 Open the terminal will change the content submitted to the local repository Test for the local repository folder name
Test cD
5 Check Status
git status
Upload triple
6 new code added to the local repository cache Maybe you wanted to say 'git add.'? Note git add.
git add .
7 Repeat steps 5 -> code files newly created git status from red to green
8 code and submit comments
git commit -m "New TestTableCell class"
9 to submit code to the remote repository
git push origin master
Success can submit code to the cloud refresh repository interface
Update remote code to a local warehouse
1 went to the local repository folder
cd Desktop/Test
2 download code to the remote eye-catching local native code Refresh
git pull origin master