Common instruction operation git

Winter watched a lot of video, watching very simple, used to forget.

Knowledge of offal should always recorded.

Although there have been github desktop applications, but in fact used a few times later discovered instruction by instruction a lot easier, and even if there are errors error, the error is a learning

git command

 

 

git clone on the instructions copied locally github

 

git init project initialization file directory, will add a .git for uploading your project in the project directory

git remote add origin + warehouse address upload

git add. To add files to the staging area, similar to click the file, select Copy, and Paste the copied files, there plate, add operate much the same

git commit -m "Comment on this operation you need to add"

git push to transfer your files to github repository

git pull in order to avoid mistakes, and each developed after the end of development should look git pull

 

Guess you like

Origin www.cnblogs.com/wjune-0405/p/12383655.html