iOS-git

作者: 记忆的北极 | 来源:发表于2019-03-28 21:16 被阅读0次

新建文档和git

1, 本地创建一个文件夹HQ
2, cd到HQ文件夹
3, git init //初始化当前目录的git
4, git remote add origin url(git 远程仓库的地址) 添加远程仓库名称.
4, git pull origin master //从远程仓库拉数据.

提交

1, git add . //提交所有改动
2, git commit -am "提交依赖库"
3, git pushgit psuh origin master //上传到远程分支
//有可能提交不成功,因为需要验证身份,
4, git config user.name "zhanglinlin"
git config user.email "you@example.com"

刷新

1, git add . //先提交自己本地的改动
2, git commit -am "更新" //提交到本地git
3, git pull origin master //刷新

相关文章

网友评论

    本文标题:iOS-git

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