Git常用方法总结

来源:互联网 发布:广州网络维护 编辑:程序博客网 时间:2024/05/29 16:35
- 起步Git config --global user.name “”Git config --global user.email “”- 提交文件  Git add .Git commit -m “更改”Git push origin master- Clone仓库码云:git clone git@oschina:用户名/~.gitgithub:git clone git@github:用户名/~.git(ps:这里的oschina以及github为我自己设置的host名,为了便于管理多个git账户的)具体设置方法参考:https://www.cnblogs.com/popfisher/p/5731232.html- 同步到本地Git pull origin master