Sie sind auf Seite 1von 11

SENG8040 LAB #1

Name: Amandeep Singh


Student No.: 8665092
Dated: 16th May 2019

To create a new repository


Step 1:- In the upper right corner, next to your avatar or identicon, click + and then select
New repository as shown in figure (1.a).

Figure (1.a)

Step 2:- Name your repository Name as shown in Figure (1.b).

Figure (1.b)
Step 3:- Write a short description as shown in Figure (1.c).

Figure (1.c)

Step 4:- Select Initialize this repository with a README as shown in Figure (1.d)

Figure (1.d)

Step 5:- Click on Create repository button as shown in Figure (1.e)

Figure (1.e)
After Successful creation of Repository, your Git-Hub window will appear as Figure (1.f).

Figure (1.f)

To create new Branch


Step 1:- Go to your new repository first as shown in Figure (2.a).

Figure (2.a)

Step 2:- Click the drop down at the top of the file list that says branch: master as shown in
Figure (2.b).

Figure (2.b)
Step 3:- Type a branch name, read, into the new branch text box as shown in Figure (2.c).

Figure (2.c)

Step 4:- Select the blue Create branch box or hit “Enter” on your keyboard as shown in
Figure (2.d).

Figure (2.d)

Now you have two branches, master and read as shown in figure (2.e). They look exactly the
same, but not for long! As we can put some changes in them.

Figure (2.e)
Making and committing changes
Step 1:- Click the README.md file as shown in Figure (3.a).

Figure (3.a)

Step 2:- Click the pencil icon in the upper right corner of the file view to edit as shown
in Figure (3.b).

Figure (3.b)
Step 3:- In the editor, write a bit about yourself as shown in Figure (3.c).

Figure (3.c)
Step 4:- Write a commit message that describes your changes as shown in Figure
(3.d).

Figure (3.d)

Step 5:- Click Commit changes button as shown in Figure (3.e).

Figure (3.e)

These changes will be made to just the README file on your read branch, so now this
branch contains content that’s different from master as shown in Figure (3.f).

Figure (3.f)
Opening a Pull Request
Click the Pull Request tab, then from the Pull Request page, click the green New pull request
button.

In the Example Comparisons box, select the branch you made, readme-edits, to compare
with master (the original).
Look over your changes in the diffs on the Compare page, make sure they’re what you want
to submit.

When you’re satisfied that these are the changes you want to submit, click the big green
Create Pull Request button.
Give your pull request a title and write a brief description of your changes.
Merge your Pull Request
1. Click the green Merge pull request button to merge the changes into master.

2. Click Confirm merge.

3. Go ahead and delete the branch, since its changes have been incorporated, with the Delete branch button
in the purple box.

Das könnte Ihnen auch gefallen