SlideShare a Scribd company logo
1 of 28
Git and Git-Ops
Lecture 2
Setting up Git
Git and Key concepts
Advantages of Git over other Version
Control Systems
Basic Git Commands and Concepts
By the end of the session, we will be able to:
▪ Grasp the significance of version control.
▪ Successfully install and configure Git on their
Windows machines.
▪ Create a new Git repository in their project directory.
▪ Navigate the commit history of their repository.
Session Objectives
Install Git On Windows
Configuration of Git
Creating a Git Repository and
Connecting it to a Remote Repository
Install Git On Windows
● To download the latest version of Git, click on the
link below:
● https://git-scm.com/download/win/
● Great! Your file is being downloaded.
Install Git On Windows
● After your download is complete, Run the .exe file
in your system.
Install Git On Windows
● After you have pressed the Run button and agreed
to the license, you will find a window prompt to
select components to be installed.
● After you have made a selection of your desired
components, click on Next>.
Install Git On Windows
● The next prompt window will let you choose the
adjustment of your path environment. This is
where you decide how you want to use Git.
● You can select any of the three options according
to your needs. But for beginners, I recommend
using Use Git From Git Bash Only
Install Git On Windows
● The next step is to choose features for your Git.
You get three options and you can choose any of
them, all of them or none of them as per your
needs. Let me tell you what these features are
● The first is the option to Enable file system
caching.
● Caching is enabled through Cache Manager, which
operates continuously while Windows is running.
File data in the system file cache is written to the
disk at intervals determined by the operating
system, and the memory previously used by that
file data is freed.
Install Git On Windows
● The second option is to enable Git Credential
Manager.
● The Git Credential Manager for Windows (GCM) is a
credential helper for Git. It securely stores your
credentials in the Windows CM so that you only need
to enter them once for each remote repository you
access. All future Git commands will reuse the
existing credentials.
● The third option is to Enable symbolic links.
● Symbolic links or symlinks are nothing but advanced
shortcuts. You can create symbolic links for each
individual file or folder, and these will appear like they
are stored in the folder with symbolic links.
● I have selected the first two features only.
Install Git On Windows
● Choose your terminal.
● You can choose one from the options.
● The default terminal of MYSYS2 which is a
collection of GNU utilities such as bash, make,
gawk and grep to allow building of applications and
programs which depend on traditionally UNIX tools
to be present.
● Or you can choose the window’s default console
window (cmd.exe).
Install Git On Windows
● Now you have got all you need. Select Launch Git
Bash and click on Finish.
● This will launch Git Bash on your screen.
Install Git On Windows
Configuration of Git
Creating a Git Repository and connecting
it to a Remote Repository
Configuration of Git
● After installing Git, you need to configure it with
your user information, including your name and
email address. This information will be associated
with your commits.
● Open a terminal or Git Bash (on Windows) and run
the following commands to configure Git:
git config --global user.name "Your
Name"
git config --global user.email
"yourname@example.com"
● Replace "Your Name" with your actual name and
"yourname@example.com" with your email
address.
Configuration of Git
● The --global flag sets the configuration globally,
meaning it will be applied to all repositories on
your system. If you want to set configuration on a
per-repository basis, omit the --global flag and run
the commands inside the specific repository.
● You can verify your configuration by running the
following command:
git config --global –list
● This will display your configured name and email
address.
Configuration of Git
● Checking the Git Installation: To ensure that Git is
installed correctly, open a terminal or Git Bash and
run the following command:
git --version
● This command will display the installed Git
version, confirming that Git is properly installed on
your system.
Install Git On Windows
Configuration of Git
Creating a Git Repository and connecting
it to a Remote Repository
Creating a Git Repository
● In Git, a repository is a central location where your
project's files and version history are stored. In this
part of the chapter, we will explore the process of
creating a Git repository on your local machine.
● Creating a Git Repository: To create a Git
repository, follow these steps:
Navigate to the desired directory:
● Open a terminal or command prompt and navigate
to the directory where you want to create the Git
repository. This directory will serve as the root of
your project.
Creating a Git Repository
Initialize the repository:
● Run the following command to initialize a new Git
repository in the current directory:
git init
● This command creates an empty Git repository in the
current directory. You will see a new hidden folder
named ".git" that contains the repository's
metadata.
Adding files to the repository:
● Once the repository is initialized, you can start
adding files to it. Copy or create the files you want to
include in the repository into the project directory.
Creating a Git Repository
Staging and committing changes:
● Git uses a staging area to track changes before
committing them. To stage changes, use the
following command:
git add <file1> <file2> ...
● Replace <file1>, <file2>, etc., with the names of the
files you want to stage. Use "." to stage all changes
in the current directory.
● After staging the changes, you can commit them
using the following command:
git commit -m "Commit message"
Creating a Git Repository
Staging and committing changes:
● Replace "Commit message" with a descriptive
message summarizing the changes made in the
commit. This helps you and others understand the
purpose of the commit.
● Viewing the repository's history: You can view the
commit history of the repository using the following
command:
git log
● This command displays a list of commits, including
their unique identifiers, author information,
timestamps, and commit messages. The log
provides an overview of the project's version
history.
Connecting to a Remote Repository
● Connecting to a remote repository allows you to
collaborate with others, synchronize your changes,
and share your work. In this part, we will explore the
process of connecting to a remote repository.
● Creating a remote repository: To connect to a
remote repository, you first need to create one.
There are various hosting platforms available, such
as GitHub, GitLab, and Bitbucket.
● Follow the instructions provided by your chosen
platform to create a new repository.
Connecting to a Remote Repository
● Associating the remote repository: After creating
the remote repository, you need to associate it with
your local repository. Run the following command
to add the remote repository URL:
git remote add origin <remote_url>
● Replace <remote_url> with the URL of the remote
repository.
● Pushing changes to the remote repository: To
upload your local commits to the remote repository,
use the following command:
git push -u origin <branch_name>
Connecting to a Remote Repository
● Replace <branch_name> with the branch you want
to push to the remote repository. The -u option sets
the upstream branch, allowing you to use git push
in the future without specifying the branch.
● Pulling changes from the remote repository: To
retrieve and incorporate changes made in the
remote repository, use the following command:
git pull origin <branch_name>
● Replace <branch_name> with the branch you want
to pull changes from. This command fetches the
latest changes and merges them into your local
branch.
Install Git On Windows
Configuration of Git
Creating a Git Repository and
connecting it to a Remote Repository
Lecture 2 Activity 1
Time for an activity.
Lecture 2 Activity 2
Time for an activity.
Setting up Git.pptx

More Related Content

Similar to Setting up Git.pptx

Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxHitesh670643
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to GitDaniel Tai
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and GithubWycliff1
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow Sebin Benjamin
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfmurad khan
 
introduction in version control system
introduction in version control systemintroduction in version control system
introduction in version control systemBiga Gaber
 

Similar to Setting up Git.pptx (20)

Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to Git
 
Formation git
Formation gitFormation git
Formation git
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git
GitGit
Git
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
 
Grokking opensource with github
Grokking opensource with githubGrokking opensource with github
Grokking opensource with github
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Git 101
Git 101Git 101
Git 101
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdf
 
Version control
Version controlVersion control
Version control
 
introduction in version control system
introduction in version control systemintroduction in version control system
introduction in version control system
 

Recently uploaded

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 

Recently uploaded (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 

Setting up Git.pptx

  • 1. Git and Git-Ops Lecture 2 Setting up Git
  • 2. Git and Key concepts Advantages of Git over other Version Control Systems Basic Git Commands and Concepts
  • 3. By the end of the session, we will be able to: ▪ Grasp the significance of version control. ▪ Successfully install and configure Git on their Windows machines. ▪ Create a new Git repository in their project directory. ▪ Navigate the commit history of their repository. Session Objectives
  • 4. Install Git On Windows Configuration of Git Creating a Git Repository and Connecting it to a Remote Repository
  • 5. Install Git On Windows ● To download the latest version of Git, click on the link below: ● https://git-scm.com/download/win/ ● Great! Your file is being downloaded.
  • 6. Install Git On Windows ● After your download is complete, Run the .exe file in your system.
  • 7. Install Git On Windows ● After you have pressed the Run button and agreed to the license, you will find a window prompt to select components to be installed. ● After you have made a selection of your desired components, click on Next>.
  • 8. Install Git On Windows ● The next prompt window will let you choose the adjustment of your path environment. This is where you decide how you want to use Git. ● You can select any of the three options according to your needs. But for beginners, I recommend using Use Git From Git Bash Only
  • 9. Install Git On Windows ● The next step is to choose features for your Git. You get three options and you can choose any of them, all of them or none of them as per your needs. Let me tell you what these features are ● The first is the option to Enable file system caching. ● Caching is enabled through Cache Manager, which operates continuously while Windows is running. File data in the system file cache is written to the disk at intervals determined by the operating system, and the memory previously used by that file data is freed.
  • 10. Install Git On Windows ● The second option is to enable Git Credential Manager. ● The Git Credential Manager for Windows (GCM) is a credential helper for Git. It securely stores your credentials in the Windows CM so that you only need to enter them once for each remote repository you access. All future Git commands will reuse the existing credentials. ● The third option is to Enable symbolic links. ● Symbolic links or symlinks are nothing but advanced shortcuts. You can create symbolic links for each individual file or folder, and these will appear like they are stored in the folder with symbolic links. ● I have selected the first two features only.
  • 11. Install Git On Windows ● Choose your terminal. ● You can choose one from the options. ● The default terminal of MYSYS2 which is a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present. ● Or you can choose the window’s default console window (cmd.exe).
  • 12. Install Git On Windows ● Now you have got all you need. Select Launch Git Bash and click on Finish. ● This will launch Git Bash on your screen.
  • 13. Install Git On Windows Configuration of Git Creating a Git Repository and connecting it to a Remote Repository
  • 14. Configuration of Git ● After installing Git, you need to configure it with your user information, including your name and email address. This information will be associated with your commits. ● Open a terminal or Git Bash (on Windows) and run the following commands to configure Git: git config --global user.name "Your Name" git config --global user.email "yourname@example.com" ● Replace "Your Name" with your actual name and "yourname@example.com" with your email address.
  • 15. Configuration of Git ● The --global flag sets the configuration globally, meaning it will be applied to all repositories on your system. If you want to set configuration on a per-repository basis, omit the --global flag and run the commands inside the specific repository. ● You can verify your configuration by running the following command: git config --global –list ● This will display your configured name and email address.
  • 16. Configuration of Git ● Checking the Git Installation: To ensure that Git is installed correctly, open a terminal or Git Bash and run the following command: git --version ● This command will display the installed Git version, confirming that Git is properly installed on your system.
  • 17. Install Git On Windows Configuration of Git Creating a Git Repository and connecting it to a Remote Repository
  • 18. Creating a Git Repository ● In Git, a repository is a central location where your project's files and version history are stored. In this part of the chapter, we will explore the process of creating a Git repository on your local machine. ● Creating a Git Repository: To create a Git repository, follow these steps: Navigate to the desired directory: ● Open a terminal or command prompt and navigate to the directory where you want to create the Git repository. This directory will serve as the root of your project.
  • 19. Creating a Git Repository Initialize the repository: ● Run the following command to initialize a new Git repository in the current directory: git init ● This command creates an empty Git repository in the current directory. You will see a new hidden folder named ".git" that contains the repository's metadata. Adding files to the repository: ● Once the repository is initialized, you can start adding files to it. Copy or create the files you want to include in the repository into the project directory.
  • 20. Creating a Git Repository Staging and committing changes: ● Git uses a staging area to track changes before committing them. To stage changes, use the following command: git add <file1> <file2> ... ● Replace <file1>, <file2>, etc., with the names of the files you want to stage. Use "." to stage all changes in the current directory. ● After staging the changes, you can commit them using the following command: git commit -m "Commit message"
  • 21. Creating a Git Repository Staging and committing changes: ● Replace "Commit message" with a descriptive message summarizing the changes made in the commit. This helps you and others understand the purpose of the commit. ● Viewing the repository's history: You can view the commit history of the repository using the following command: git log ● This command displays a list of commits, including their unique identifiers, author information, timestamps, and commit messages. The log provides an overview of the project's version history.
  • 22. Connecting to a Remote Repository ● Connecting to a remote repository allows you to collaborate with others, synchronize your changes, and share your work. In this part, we will explore the process of connecting to a remote repository. ● Creating a remote repository: To connect to a remote repository, you first need to create one. There are various hosting platforms available, such as GitHub, GitLab, and Bitbucket. ● Follow the instructions provided by your chosen platform to create a new repository.
  • 23. Connecting to a Remote Repository ● Associating the remote repository: After creating the remote repository, you need to associate it with your local repository. Run the following command to add the remote repository URL: git remote add origin <remote_url> ● Replace <remote_url> with the URL of the remote repository. ● Pushing changes to the remote repository: To upload your local commits to the remote repository, use the following command: git push -u origin <branch_name>
  • 24. Connecting to a Remote Repository ● Replace <branch_name> with the branch you want to push to the remote repository. The -u option sets the upstream branch, allowing you to use git push in the future without specifying the branch. ● Pulling changes from the remote repository: To retrieve and incorporate changes made in the remote repository, use the following command: git pull origin <branch_name> ● Replace <branch_name> with the branch you want to pull changes from. This command fetches the latest changes and merges them into your local branch.
  • 25. Install Git On Windows Configuration of Git Creating a Git Repository and connecting it to a Remote Repository
  • 26. Lecture 2 Activity 1 Time for an activity.
  • 27. Lecture 2 Activity 2 Time for an activity.