git使用常见问题总结

先来生成钥匙ssh key           $ ssh-keygen -t rsa -C “[email protected]

然后github 上建立新项目,然后本地建立文件夹克隆下来(注意提交的时候不要在最外层提交,因为目录结构不对会提交不了,要对你操作的项目目录右键提交)

就是  git add .   >    git commit -m ""    >    git push origin master

更新远程到本地   git pull origin master  (个人的项目基本用不上,团队开发的时候常用)

猜你喜欢

转载自www.cnblogs.com/tomofagain/p/10813922.html