Git常用命令

2020-11-04 14:24:53 浏览数 (1)

create a new repository on the command line

代码语言:javascript复制
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:user/project_name.git
git push -u origin master

push an existing repository from the command line

代码语言:javascript复制
git remote add origin [email protected]:user/project_name.git
git push -u origin master

0 人点赞