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

 安装

sudo apt install git  


配置账号

git config --global user.email "[email protected]"
git config --global user.name "-----"


首次初始化

git init  


添加文件

git add README.md 

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

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

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


从服务器更新下来

git pull origin master

查看状态
git status

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章