Creating a repository and git salute steps - barrycumbie/solid-fishstick-snowcats GitHub Wiki
This is group 2 for Oscar Lab Group members : Logan & Janna
Step 1️⃣ : Getting Started
Create a repo
- Navigate to www.github.com on web browser
- Sign in or create account
- Create new repository
- Name repository
- Make public
- Add a README file
- Add .gitignore (node)
- Choose a license (GNU General Public License version 3.0
- Click "Create"
Step 2️⃣ : Open Visual Studio Code on local dev box
- open terminal (shortcut below)
ctrl + shift + `
- change to bash terminal (click the plus on the terminal and it will give and option for bash)
- cd into desktop
cd desktop
- make a folder named "repos"
mkdir repos
- cd into repos folder
cd repos
- git clone "repository link"
git clone https://github.com/LoganBeckman21/animated-lamp-oscar.git
- cd into repo
cd animated-lamp-oscar/
- Open repo into Visual Studio code
code .
Step 3️⃣ : New Visual Studio tab
- open terminal (ctrl + shirt + `)
- open new bash terminal (click on the plus and should have a selection for bash)
- create index.html file (or any kind of file / folder)
- write program
Step 4️⃣ : Committing to the branch on www.github.com
- git status (to see if you have any new files / folders that need to be committed to your repo)
git status
- git add index.html (your file / folder)
git add index.html
- git commit -m "[updated html file]"
git commit -m "[updated html file]"
- git push (may have to sign into GitHub on browser)
git push
Step 5️⃣ : Go to repo on GitHub
- Notice the push made to the repo