initialization
Enter an arbitrary folder (such as D: \ aqin_test1 \)
- git init
- git config-mail
- git config name
- the Add Remote Origin git https://gitee.com/aqin1012/aqin_test1.git # remote upload address ( https://gitee.com/aqin1012/aqin_test1.git target address saved, modified according to their actual situation)
(At this point git has D: \ aqin_test1 \ directory to manage that thereafter there is any change in this folder, git will be detected (using the git status command to view the state))
Collect and submit the code
- Status git # view the current directory state
- the Add git. # Collect all the files in the current directory
- git commit -m "record" # submit written record
- Master the Push Origin git # local D: \ aqin_test1 \ content directory synchronization code to cloud repository
File Operations
- git status
- git add.
- git commit -m "record"
- Master the Push Origin git # local D: \ aqin_test1 \ content directory synchronization code to cloud repository
Note: If the remote does not have a local code, you must perform
- git pull origin master
- git status
- git add.
- git commit -m "record"
- Master the Push Origin git # local D: \ aqin_test1 \ content directory synchronization code to cloud repository