美文网首页
#1 常用的命令

#1 常用的命令

作者: JamesSawyer | 来源:发表于2018-08-16 15:37 被阅读9次

1.git push --all origin

将分支推送到远程github上

2.git push origin master

将本地更新的代码更新到远程master仓库

3.上传到github

将项目上传到github

git remote add origin https://github.com/jamessawyer/项目名称.git
// 比如
git remote add origin https://github.com/jamessawyer/fullstack-react.git

// 上传到主分支
git push -u origin master

# 上传到子分支
git push -u origin 分支名称
// 比如
git push -u origin demo-1

相关文章

网友评论

      本文标题:#1 常用的命令

      本文链接:https://www.haomeiwen.com/subject/tmtkcxtx.html