0% found this document useful (0 votes)
115 views2 pages

Git and GitHub-Lab-IA1

The document contains instructions for several Git and GitHub tasks assigned to different people: 1. Navya is asked to create a remote repository with a README file, add answers to questions in a text file, demonstrate importing a remote repository locally, generate an SSH key, and push changes to GitHub. 2. Priyanka is asked to create a remote repository, import it locally, create and push a local branch with an introduction, and merge it into the master branch on GitHub. 3. Mahithosh is asked to initialize a local repository, demonstrate Git commands, generate an SSH key, add a program to swap integers, and push changes to GitHub. 4. Nidhi is asked to

Uploaded by

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

Git and GitHub-Lab-IA1

The document contains instructions for several Git and GitHub tasks assigned to different people: 1. Navya is asked to create a remote repository with a README file, add answers to questions in a text file, demonstrate importing a remote repository locally, generate an SSH key, and push changes to GitHub. 2. Priyanka is asked to create a remote repository, import it locally, create and push a local branch with an introduction, and merge it into the master branch on GitHub. 3. Mahithosh is asked to initialize a local repository, demonstrate Git commands, generate an SSH key, add a program to swap integers, and push changes to GitHub. 4. Nidhi is asked to

Uploaded by

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

1. Create a Remote repository in GitHub with README file.

Create a text file which


contains answers about the following questions.
i. What is Agile Methodology?
ii. Differences between Git and GitHub.

Demonstrate Three ways of importing Remote repository locally using GitBaSH.


Generate Public SSH key and add the key in GitHub. Now write a short
introduction about yourself inside the README file and push the changes to the
GitHub.

(Navya)

2. Create a Remote repository in GitHub. Import the Repository using git fetch
command into your local machine. Now Create a local branch with the name
firstbranch using GitBash. Create a text file which contains short introduction
about yourself in your local branch. Now push only the firstbranch into GitHub.
Now merge the firstbranch with the master branch in GitHub.

(priyanka)

3. Create a directory with the name Project and initialize the local repository and
set the configuration details such as username and email. Show the
demonstration of the following git commands using GitBash: help, add, commit.
Generate Public SSH key and add the key in GitHub. Create a .c file which
contains program to swap 2 integer values.
Now push the changes to GitHub.

(mahithosh)

4. Create a Remote repository in GitHub with README file. Clone the Repository
using git clone command into your local machine. Now create 2 Local branches
with the name firstbranch and secondbranch. Create a text file in each branch
which contains short introduction about yourself. Merge second branch with
firstbranch. Now push only firstbranch to GitHub.

(Nidhi)
5. Create a Remote repository in GitHub. Clone the Repository using git clone
command into your local machine. Now Create a local branch “firstbranch” using
GitBash. Create a text file which contains short introduction about your college
and department in your local branch. Now push only the branch into GitHub.
Now merge the firstbranch with the master branch locally using GitBash. Now
push masterbranch (local) to GitHub.

(sonika)

6. Create a directory with the name Project and initialize the local repository and
set the configuration details such as username and email.
Show the demonstration of the following git commands using GitBash: help, add,
commit. Create a .c file which contains program to swap 2 integer values.
Now create 2 Local branches with the name firstbranch and secondbranch. Now
create 2 text files in each branch. Push both the branches into GitHub and merge
both the branches with the master branch in GitHub.

(harsha)
1. Creating Local Repository, creating and adding new files in the local
Repository.
(sonika)

2. Creating branch locally and merging one branch with the other or master and
Switching between the branches.
(Nidhi)

3. Creating remote Repository in GitHub.

(Nandini)

4. Importing remote Repository into local machine through GitBash using


i. git pull
ii. git clone
iii. git fetch

(Sherly)

5. Generating SSH public key and adding it in GitHub.


(Nandini)
6. Pushing local changes into remote repository
i. Pushing master(Local)
ii. Creating first branch and pushing only firstbranch and merging
firstbranch with the master branch in the GitHub.
iii. Creating first branch and merge it with master branch locally and push
the master branch
iv. (Sherly)

You might also like