Git local initialization and pushed to the remote repository

1 Create a new repository on the command line
 git init 
 git add README.md 
 git commit -m“first commit” 
 git remote add origin "你的远程仓库地址"
 git push -u origin master

2. Push existing repository from the command line
 git remote add origin "远程仓库地址"
 git push -u origin master

Guess you like

Origin www.cnblogs.com/korea/p/10992707.html