0% found this document useful (0 votes)
9 views4 pages

DevOps Expt 2

To understand Version Control Systems and Source Code Management, one can install Git locally and create a GitHub account to manage code repositories. Some key Git commands include initializing and cloning repositories, checking the status and history, adding and committing changes, and pushing updates to remote repositories. Additionally, GitHub allows creating pull requests to collaborate by merging branches between repositories.

Uploaded by

Somnath Mule
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

DevOps Expt 2

To understand Version Control Systems and Source Code Management, one can install Git locally and create a GitHub account to manage code repositories. Some key Git commands include initializing and cloning repositories, checking the status and history, adding and committing changes, and pushing updates to remote repositories. Additionally, GitHub allows creating pull requests to collaborate by merging branches between repositories.

Uploaded by

Somnath Mule
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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.

You might also like