Portfolio website assignment
Setup Assignment3 folder as a git repository
- Open terminal
- Make sure that you are inside project folder (Assignment3)
- Initialize project folder as a git repository
git init
- Show the status of the repository
git status
- Track index.html file
git add index.html photos.html
- Track css/ folder and files inside the css folder
git add css/
- Create .gitignore file and put all the files/folders that we need to ignore
touch .gitignore (This will create a new file)
- Add all files to tracking
git add . 9 After everything is added to staging area next we will commit git commit -m 'added images to my portfolio'
- Show all commits
git log
- Create repsitory on GitHub
- Connect local repo to GitHub
git remote add origin https://github.com/azamsharp/Assignment3.git
- Push your code from local repo to GitHub.com
git push -u origin main