This is my first Git and GitHub project.
In this project, I wrote down the Git commands I used to create and modify files step by step.
Initialize and Connect a Repository
git init
Creates a new Git repository in my project folder.
echo # Workshop 1 > README.md echo Some notes > notes.txt git add README.md notes.txt git commit -m "Initial commit: add README and notes"
Adds the files to staging and saves the first commit.
git branch -M main git remote add origin https://github.com/astalakshmi3/workshop1.git git push -u origin main
Links my local repo to my GitHub repository and uploads it.
echo "Added project goals" >> README.md git add README.md git commit -m "Docs: update README with project goals" git push
Practiced making meaningful commits and pushing changes.
echo node_modules/ > .gitignore echo .env >> .gitignore git add .gitignore git commit -m "Chore: add .gitignore" git push
Clone, Rename, and Re-Publish
git clone https://github.com/Lexicon-Smaland/Hello-World.git cd Hello-World
Creates a copy of the Lexicon “Hello-World” project on my computer.
git remote set-url origin https://github.com/astalakshmi3/Hello-World.git
echo "Edited by Astalakshmi" >> README.md git add README.md git commit -m "Chore: add editor note to README" git push -u origin main
"Edited by Astalakshmi"