ashish chaudhary
OtherI saved my code and made a Git commit. Does that mean a copy is already on GitHub?
git status
# A local commit does not automatically upload files.
CookieSensei starter Q&A · example discussion.
Loading…
I saved my code and made a Git commit. Does that mean a copy is already on GitHub?
git status
# A local commit does not automatically upload files.
CookieSensei starter Q&A · example discussion.
A commit records a checkpoint in your local repository. A push sends commits to a configured remote repository, such as your own GitHub repository. They are separate steps. Start by checking git status. Add the files you mean to include, inspect the staged change, and commit it with a useful message. Before sharing a repository, make sure it contains no secrets or personal files. Your instructor can help configure the correct remote and branch.
git status
git add app.py
git diff --staged
git commit -m "Add first Python example"
# Push only after checking your remote and branch.
CookieSensei starter Q&A · example discussion.