gitHub

mkdir mypython

第一隻程式:hello.py

# -*- coding: utf-8 -*-
#這是向世界打招呼
print("hello world")

使用github

Step 1: Create a local git repository

cd mypython

git init

Step 2: Add a new file to the repo

mv ~/hello.py .
git status

Step 3: Add a file to the staging environment

Step 4: Create a commit

Create a new repository on GitHub

push an existing repository from the command line

Last updated

Was this helpful?