Git常用命令

常用操作

Git的通用操作,可以在本地做好版本控制后,push到Git的服务器,可以是GithubGitlab

Create a new repository on the command line

git init 
git add .
git commit -m "first commit"
git remote add origin https://github.com/yourId/repoName.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/yourID/repoName.git
git push -u origin master

热评文章