使用Git
安装Git
- 下载Git
Git
使用GitHub
The world’s leading software development platform · GitHub
git基本命令
- 下载代码 git clone
git clone + 地址
- 查看状态 git status
- 添加代码 git add
添加所有新文件
git add .
-
忽略文件 ignore
创建一个名为 .ignore 的文件,里面写上要求被忽略上传的文件名称和文件夹名称,文件夹名称后需要加 / -
提交代码 git commit -m “描述”
可能需要初始化邮箱和名称
git config --global user.email “xxxx”
git config --global user.name “xxx”
- git push 和 git pull
- git checkout 和 git reset