ubuntu系统安装git以及基本命令

前端之家收集整理的这篇文章主要介绍了ubuntu系统安装git以及基本命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装

@H_502_5@sudo apt install git

@H_502_5@

配置账号

@H_502_5@git config --global user.email "-----@qq.com"
git config --global user.name "-----"

@H_502_5@

@H_502_5@@H_502_5@首次初始化

@H_502_5@git init

@H_502_5@

添加文件

@H_502_5@git add README.md

@H_502_5@提交修改
git commit -m "first commit"

@H_502_5@设置提交的远程路径,后面不用在设置了
git remote add origin https://github.com/gjq246/pythontest.git

@H_502_5@提交到服务器
git push -u origin master


从服务器更新下来

@H_502_5@git pull origin master

@H_502_5@查看状态 git status

猜你在找的Ubuntu相关文章