GIT
-
详细的教程:菜鸟教程git
-
简洁的教程:下面就是
-
前提:下载好git,链接:https://www.git-scm.com/downloads
-
看看自己有没有git 账号
git config user.name -----> 查看git 用户名称;
git config user.email -----> 查看git 绑定的电子邮箱 -
没有就创建账号
git config --global user.name “自己起名字”
git config --global user.email “自己的邮箱”
- 开始使用
第一步、git clone gitee仓库路径,http开头的,下面有例子
例如: git clone https://gitee.com/CalCuLuUus/attendance-management-system.git 运行之后可能会有弹出的窗口提示登陆gitee,正常用gitee的账号密码登陆就行 也可以选择配置gitee的公钥,这样就不用输密码了,也能用ssh进行git clone,教程如下: 从”自定义名称密钥“开始看,链接:http://t.csdn.cn/z2H03
关于gitee仓库路径在哪找:
第二步、拉取远端的最新版本:git pull
第三步、git commit -m “备注简短说明我做的最新工作是什么”例如:git commit -m "add a function of writeCircle"
第四步、把自己的修改提交到云端:git push
以后每次写完代码想提交都要执行第234步