首页 > 学院 > 开发设计 > 正文

git命令

2019-11-06 09:33:57
字体:
来源:转载
供稿:网友

git基本操作示例,把文件上传至github 1.clone github项目 git clone https://github.com/username/PRojectname 2.进入目录 cd projectname 3.修改文件并提交至本地仓库 git add . git commit -a -m “initial commit” 4.连接github远程项目 git remote add romoteProjectReferenceName https://github.com/username/projectname 5.把本地文件push到远程仓库 git push -u romoteProjectReferenceName master


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表