Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
git-intro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Li, Haodong (PG/T - Comp Sci & Elec Eng)
git-intro
Commits
0f1d41b7
Commit
0f1d41b7
authored
6 months ago
by
Li, Haodong (PG/T - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
a48a66d5
No related branches found
No related tags found
1 merge request
!1
Add new file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Hello.py
+6
-0
6 additions, 0 deletions
Hello.py
with
6 additions
and
0 deletions
Hello.py
0 → 100644
+
6
−
0
View file @
0f1d41b7
cat
-
>
Hello
.
py
# type in print(“Hello World”) into STDIN and type Ctrl-D.
python3
Hello
.
py
# Should print(“Hello World”)
git
add
Hello
.
py
#Add a shiny new file to your repo.
git
status
# Note the output and compare with the next git status below
git
commit
-
m
"
Added first piece of code
"
git
status
# How does this differ from previous git status? What does this tell you?
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment