github 使用方法

1. 建仓库+key等

这个教程超级赞哦~

http://www.cnblogs.com/zuibunan/p/3843241.html

两个坑:1 创建key,如果有啥问题,就按默认的路径来;2 git init 可以不要here

2. 常见命令

(1) 如果网上和本地不同,先从网上pull代码

git pull origin

git add --all

git commit -m "changes"

扫描二维码关注公众号,回复: 12995227 查看本文章

(2) 增加文件

git add file.psd

git commit -m "add file"

git push origin master


(3) 删除文件:

git rm *.swo

git add --all

git commit -m "delete file"  引号里边可以自己写,主要是说这次操作是在做什么

git push origin master

git push --set-upstream origin branch1

猜你喜欢

转载自blog.csdn.net/Sun7_She/article/details/85809523