GIT - Day-1
Step-by-Step guide to setting up Git on Windows, Mac, and an Amazon Linux 2 EC2 instance, along with a sample project to practice with
###TOPIC 1: Install Git
Install Git on Windows
Install Git on Mac
Install Git On Amazon Linux 2 EC2 Instance
###TOPIC 2: Configure Git
Create a Sample Project
Initialize a Local Repository
###TOPIC 3: Create a Sample Project
Initialize a Local Repository
Create a new directory for your project:
Create a README File
Add the README file to the staging area:
Commit the README file:
step-by-step guide to creating a new sample project to practice Following Git commands.
##COMMANDS
git init: Initializes a new Git repository.
ls -la: Lists all files and directories, including hidden ones.
touch: Creates an empty file.
echo: Outputs the given string to the terminal or file.
git status: Displays the state of the working directory and the staging area.
git add: Adds changes to the staging area.
git commit: Records changes to the repository.
git ls-files: Lists all files tracked by Git.
git log: Shows the commit history.
git log --oneline: Displays a simplified commit history.
Explaining the difference between "untracked" and "unstaged" files in Git, followed by a sample project to practice with.
### Untracked vs. Unstaged
git-assignment List
GIT - Day-1
Step-by-Step guide to setting up Git on Windows, Mac, and an Amazon Linux 2 EC2 instance, along with a sample project to practice with
###TOPIC 1: Install Git
Install Git on Windows
Install Git on Mac
Install Git On Amazon Linux 2 EC2 Instance
###TOPIC 2: Configure Git
Create a Sample Project
Initialize a Local Repository
###TOPIC 3: Create a Sample Project
Initialize a Local Repository
Create a new directory for your project:
Create a README File
Add the README file to the staging area:
Commit the README file:
step-by-step guide to creating a new sample project to practice Following Git commands.
##COMMANDS
git init: Initializes a new Git repository.
ls -la: Lists all files and directories, including hidden ones.
touch: Creates an empty file.
echo: Outputs the given string to the terminal or file.
git status: Displays the state of the working directory and the staging area.
git add: Adds changes to the staging area.
git commit: Records changes to the repository.
git ls-files: Lists all files tracked by Git.
git log: Shows the commit history.
git log --oneline: Displays a simplified commit history.
Explaining the difference between "untracked" and "unstaged" files in Git, followed by a sample project to practice with.
### Untracked vs. Unstaged
GIT - Day-2
sample project to practice using `git diff` and `git diff --staged` commands.
git diff
git diff --staged
sample project to practice using `git rm`, and `git rm --cached` commands.
git rm, and
git rm --cached
sample project to practice using the `.gitignore` file in Git.
`.gitignore` file
sample project to practice using `git revert`, `git log`, and `git show` commands.
`git revert`
`git log`
`git show`
project to practice using `git reset` with its different options: `--hard`, `--soft`, and `--mixed`.
git reset --soft
git reset --mixed
git reset --hard
explore the differences between `git revert` and `git reset` with examples.
git reset
git revert
project to practice using `git branch` and `git checkout` & `git merge`.
git branch
git checkout
git merge
GIT - Day-3
###project to practice resolving Git conflicts.
###Project to Practice Git Stash
git stash
git stash list
git show stash
git stash pop
git stash apply
git stash drop
git stash -p
git stash clear
git stash -u
###project that helps you practice the git rebase command with a realistic scenario.
git rebase
GIT - Day-4
### Step-by-Step Guide: Sample Project for Git and GitHub
Create a GitHub Account and Repository
Create a Personal Access Token (PAT) on GitHub
Set Up a Local Git Repository and Connect to GitHub
Validate the Remote Branch
Delete the Local Branch
Delete the Remote Branch
### scenario to include multiple branches, allowing you to practice more advanced Git operations, such as merging and resolving conflicts.
Create a GitHub Account and Repository (As Before)
Create a Personal Access Token (PAT) on GitHub (As Before)
Set Up the Project Locally and Connect to GitHub
Create Multiple Branches Locally and Push to GitHub
Merge Branches and Resolve Conflicts
Validate and Clean Up Branches
Merge `dev` into `main` and Final Cleanup
### Sample Project for Practicing `git clone`, `git pull`, and `git fetch`
git clone
git pull
git fetch
### Project: Handling a File Conflict Between Local and Remote Repositories with git pull
### Project: Handling a File Conflict with `git pull --rebase`