Experiment No. 2
To understand Version Control System / Source Code Management, install git and create a
GitHub account and Explore Git and GitHub commands
Description:-
To understand Version Control System (VCS) or Source Code Management (SCM), you can follow
these steps to install Git and create a GitHub account:
1. Install Git:
- Visit the official Git website at https://git-scm.com/.
- Download the appropriate installer for your operating system (Windows, macOS, or Linux).
- Run the installer and follow the instructions to complete the installation process.
2. Create a GitHub account:
- Visit the GitHub website at https://github.com/.
- Click on the "Sign up" button.
- Provide the required information, including your username, email address, and password.
- Choose a plan (you can start with the free plan).
- Complete the account creation process by following the on-screen instructions.
Once you have installed Git and created a GitHub account, you can start using Git for version control
and GitHub as a remote repository for your projects. This will allow you to track changes, collaborate
with others, and manage your source code effectively.
Explore Git and GitHub commands
DESCRIPTION:
Git and GitHub are two of the most popular tools used for version control and collaboration in
software development.
Here are some common Git and GitHub commands:
• Initializing a Git repository: $ git init
• Checking the status of your repository: $ git status
• Adding files to the stage: $ git add
• Committing changes: $ git commit -m "commit message"
• Checking the commit history: $ git log
• Undoing changes: $ git checkout
• Creating a new branch: $ git branch
• Switching to a different branch: $ git checkout
• Merging two branches: $ git merge
• Pushing changes to a remote repository: $ git push origin
• Cloning a repository from GitHub: $ git clone
• Creating a pull request on GitHub: Go to the repository on GitHub, select the branch you want to
merge and click the "New pull request" button.
These are just a few of the many Git and GitHub commands available. There are many other Git
commands and functionalities that you can explore to suit your needs.

DevOps Expt 2.pdf

  • 1.
    Experiment No. 2 Tounderstand Version Control System / Source Code Management, install git and create a GitHub account and Explore Git and GitHub commands Description:- To understand Version Control System (VCS) or Source Code Management (SCM), you can follow these steps to install Git and create a GitHub account: 1. Install Git: - Visit the official Git website at https://git-scm.com/. - Download the appropriate installer for your operating system (Windows, macOS, or Linux).
  • 2.
    - Run theinstaller and follow the instructions to complete the installation process.
  • 3.
    2. Create aGitHub account: - Visit the GitHub website at https://github.com/. - Click on the "Sign up" button. - Provide the required information, including your username, email address, and password. - Choose a plan (you can start with the free plan). - Complete the account creation process by following the on-screen instructions. Once you have installed Git and created a GitHub account, you can start using Git for version control and GitHub as a remote repository for your projects. This will allow you to track changes, collaborate with others, and manage your source code effectively. Explore Git and GitHub commands DESCRIPTION: Git and GitHub are two of the most popular tools used for version control and collaboration in software development. Here are some common Git and GitHub commands: • Initializing a Git repository: $ git init • Checking the status of your repository: $ git status • Adding files to the stage: $ git add
  • 4.
    • Committing changes:$ git commit -m "commit message" • Checking the commit history: $ git log • Undoing changes: $ git checkout • Creating a new branch: $ git branch • Switching to a different branch: $ git checkout • Merging two branches: $ git merge • Pushing changes to a remote repository: $ git push origin • Cloning a repository from GitHub: $ git clone • Creating a pull request on GitHub: Go to the repository on GitHub, select the branch you want to merge and click the "New pull request" button. These are just a few of the many Git and GitHub commands available. There are many other Git commands and functionalities that you can explore to suit your needs.