1. Download git
https://blog.csdn.net/ai1362425349/article/details/82119889
2. The installation directory can not have Chinese, put the c drive it
3. Create a directory to store the git, E: \ gitHome
4. Production key command line:
SSH-keygen -t RSA -C "[email protected]"
5. Check the key
cat ~ / .ssh / id_rsa.pub
can open C: \ Users \ Administrator.SC-201605302031 \ .ssh \ id_rsa.pub
6. Copy all
7. Open center personal cloud code provided -> installation settings -> the SSH public key, the public key is added, pasted.
8. New Warehouse (project)
------------------------------------------- -------------------------
>>>>>>>>> separator, following upload native code
1. replicate address
2. name global variables are defined in two rows, a mailbox, a code name to upload to the cloud will be used when ordered as follows:
git config --global user.email "[email protected]"
after the carriage return will appear and green fonts then enter:
git config --global user.name "zhangws"
3. Upload the code:
Right-click Git Bash Here Open a command line in your new directory
4. Enter the carriage initialization command git init
The cloud code attached to
add remote path:
Git the Add Remote Origin https://gitee.com/xmanman/tppro.git
6. all files on the cloud pull code to the project before pulling :( project, submit, like svn)
git pull Origin Master
6. Upload the code
mark in the current directory upload:
git the Add.
Add a comment:
git the commit -m "From the first time"
submitted to the code above the clouds:
first submission, then: git push -u origin master
submitted after: git push origin master