GitHub的几个常用命令教程!

一、初始化 

git config --global user.email [your_email_address]
git config --global user.name [your_name]

二、单机或者服务器合作

单机:

git init

服务器:

git clone

三、向版本库提交代码

先添加文件名:

git add*

然后提交

git commit -m "first commit"

最后一步实时推送

git push origin master

四、更新本地版本库

git pull

五、查看状态

git status

猜你喜欢

转载自blog.csdn.net/qq_42375089/article/details/80977273
今日推荐