git是什么?
git 是一个版本控制器
git
是一个软件工具
gitee
和github
是基于git
搭建起来的一个网站
使用git命令将代码传到gitee中
-
git clone url
-
先新创建一个仓库
-
将
HTTPS
中点击复制就是url
gitignore 不想要传上去的代码
-
-
git add 文件名
-
git commit
第一次使用 git commit 时,需要执行下面的代码并且在引号中将邮箱和姓名写入
git config --global user.email "you@example.com(输入你的邮箱)" git config --global user.name "Your Name(输入你的姓名)"
-
git push
需要输入用户名和密码
git status
查看当前的工作目录 就是push的时候哪些文件被上传
t status` 查看当前的工作目录 就是push的时候哪些文件被上传