Linux 下上传代码到github

1.git init 初始化

2.git clone将刚刚创建的项目克隆下来

git clone https://github.com/...

3.进入到Project,编写代码

4.项目完成后执行git add 添加要上传的文件

例:

git add helloworld.py

5.提交 git commit -m "描述信息"

例:

git commit -m "This is the hello world code"

6.git push 上传到 branch (默认为master)

git push origin master

猜你喜欢

转载自www.cnblogs.com/siyuan1998/p/10720420.html