INTRO O
PROBLEM SOLVING AND
PROGRAMMING IN PYTHON
(use the Space key to navigate through all slides)

Prof. Andrea Gallegati |
Prof. Dario Abbondanza |

CIS 1051 - GH CODESPACES

GitHub

click on the following URL : https://github.com/signup
SIGN UP
for a GitHub account to
- access repositories
- run Codespaces
- collaborate on projects

Find the repo for this course to access materials and assignments:
Access free GitHub Education benefits
Enroll in this GitHub Classroom


Accept the invitation

and learn about the basics of Git and GitHub
Navigate back to the course repository:

-
Click the Code button
-
Create a Codespace and wait for it to load
CODESPACES
Welcome to GitHub Codespaces 🎉
-
a cloud-based development environment
-
built on vscode
-
accessible from the browser
Perfect for a Modern Software development workflow without installing anything locally.

What You’re Doing
Running basic Bash and Git commands in the Codespace terminal.

-
pwd
: Print current directory. -
ls
: List files and directories. -
echo "Hello, GitHub!" > hello.txt
: Create a new file. -
git add hello.txt
: Stage the file. -
git commit -m "Added hello.txt"
: Commit the changes. -
git push
: Push the changes to GitHub.
Once you finish, don't forget to stop the Codespace!

More fun with a .devcontainer
{
"name": "Nolli Mapping DevContainer",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"mhutchie.git-graph"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python"
}
}
},
"postCreateCommand": "pip install -r requirements.txt",
"remoteUser": "vscode"
}
This was crafted with
A Framework created by Hakim El Hattab and contributors
to make stunning HTML presentations
gh-codespaces
By Andrea Gallegati
gh-codespaces
- 28