git and github demo
git and github demo
1. Check Git: Open your terminal (Git Bash on Windows) and type git --version. If you see a version number, Git is installed. If no
proceed to the next step.
C:\Users\admin>git --version
git version 2.47.1.windows.2
Sign Up: Go to
https://github.com/ and
create a free GitHub
account.
Dashboard of my github
Create Repository: Click the
"+" button (usually in the
top right) and select "New
repository."
Pwd gives the present admin@DESKTOP-L3UNO55 MINGW64 /e/NIRMALA/D DRIVE NIRMALA/FULL STACK
working directory DEVELOPMENT/GITGITHUBDEMO
$ pwd
/e/NIRMALA/D DRIVE NIRMALA/FULL STACK DEVELOPMENT/GITGITHUBDEMO
Bash
git init
Ingredients:
- Flour
- Sugar
- Cocoa powder
- Eggs
- Milk
Instructions:
1. Mix ingredients...
2. Bake...
Spaghetti with Meatballs
Ingredients:
- Spaghetti
- Ground beef
- Tomato sauce
- Onions
- Garlic
Instructions:
1. Cook spaghetti...
2. Make meatballs...
3. Combine...
Output of browser window
Add Files to Git: Stage the git add . # Adds all files in the current directory
files for commit:
Add Remote (Connect to GitHub): Copy the URL of your repository from GitHub (it will look like
https://github.com/YourUsername/recipe-website.git). Then, in your terminal: