git基本操作

admin 次浏览

摘要:在目标文件右键 并点击 Git Bash Here初始化git init配置用户名和邮箱git config --global user.name "honhole"git config --global user.email "honhole@163.com"添加所有...

在目标文件右键 并点击 Git Bash Here

初始化

git init

配置用户名和邮箱

git config --global user.name "honhole"
git config --global user.email "honhole@163.com"

添加所有文件到 本地仓库

git add .

提交注释

git commit -m '注释说明'

与远程仓库关联

git remote add origin git地址

上传代码到仓库

git push -u origin master



删除git文件

git rm 文件名



随机内容