cd ~/Desktop
git clone https://github.com/Daryl23/Activity3.2_YourName.git
mv Activity3 Activity3_LastName_FirstName
cd Activity3_LastName_FirstName
touch hero.sql
pwd
Step 8: List the contents of the directory (including the hidden ones)
ls -a
git init
git status
git add .
git commit -m "Initial commit"
git remote -v
To create a Git remote repository on GitHub with the same name as the local repository, and associate it with your GitHub account, follow these additional steps:
Open a web browser and go to GitHub (https://github.com).
Log in to your GitHub account or create one if you don't have an account already.
Click on the "+" sign in the upper right corner and select "New repository."
Fill out the repository name as "Activity3.2_YourName" (replace "YourName" with your actual GitHub username), and add an optional description if you like.
Choose the visibility (public or private) based on your preferences.
Optionally, you can initialize the repository with a README file, create a .gitignore file, and select a license.
Click the "Create repository" button to create the remote repository on GitHub.
git remote add origin2 https://github.com/YourGitHubUsername/Activity3.2_YourName.git
git push -u origin2 main
code .
code hero.sql
code instructions.txt
git checkout -b feat/create-database
CREATE DATABASE hero;
git status
git add hero.sql
git commit -m "feat create database syntax"
git checkout main
Step 23: Merge the changes from the feature branch (e.g., "feat/create-database") into the main branch
git merge -m "feat added create database" feat/create-database
git checkout -b feat/create-tables
### Add the given SQL code line to your hero.sql file to create a tables. refer to sample output from instructions.txt
CREATE TABLE ...
### Add and commit the changes to the "feat/create-tables" branch:
git status
git add hero.sql
git commit -m "feat create tables syntax"
### Switch back to the main branch
git checkout main
### Merge the changes from the feat/create-tables feature branch into the main branch
git merge -m "feat added create database" feat/create-tables
and provide comments indicating the item number and what is being asked
for in each step. You may comment on your query related to data selection,
but avoid commenting on the database, table creation, and data insertion processes.
git branch
= List all local branches.
git log
git log --oneline
= View the commit history.