With linux source code to create a git repository (coding)

Enter the directory, such as ewei_shop execute git init

Git instantly put the warehouse built, and to tell you is an empty warehouse (empty Git repository), the current directory more than a directory .git, if not see .git directory, it is because this directory is hidden by default , you can see with ls -ah or ls -al command.

Papers filed all git add *

git commit "first submission" -m

 

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

 

git push -u origin master (first operation got me then, then will go wrong failed to push some refs to git)

deal with

git pull --rebase origin master

Until then execute the statement git push -u origin master the code to complete the upload to github

 

Guess you like

Origin www.cnblogs.com/weiyiyong/p/11318425.html