github operation memo

 

   The best way to use github is actually to build a warehouse on the github website. Others always have inexplicable problems. I will skip it here. Anyway, I have encountered it. . .

 

   After the warehouse is created, github gives a prompt interface, as follows: (Haha, just follow the operation)

 


 

   After the warehouse is created, the command line jumps to the project project directory  

   implement

      git init

      Initialization, at this time, a .git hidden directory will be created to record local files to be submitted, etc.  

   Then you can execute  

      git add folder/specific file

      Indicates that the current directory or a file has been modified,

   execute after

      git commit -m "commit comments"

      add modification log,  

 

 

   then pay attention

   For the first submission, you need to specify the updated warehouse address, here is https, 

   git remote add origin https://github.com/myname/myapp.git

   It is not needed after that, because it will be saved in the config file in the .git directory

 

   final execution

      git push -u origin master

      Submit the changed file

  

   Oh, you will be prompted to enter your email and password

 

   You can execute git branch to view the branch

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326254287&siteId=291194637