git: the code will be submitted to a remote repository (code cloud)

initialization

  Enter an arbitrary folder (such as D: \ aqin_test1 \)

  (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

Guess you like

Origin www.cnblogs.com/aqin1012/p/11270143.html