Sign in
Log inSign up

Fork Repository Into Github

Titus Mamuda's photo
Titus Mamuda
·Jan 9, 2020

First of all click on the github.com/ibn-ashimi/kolhab-bootcamp then click on Fork, choose the account on which it will be. Create a folder on computer choose name desire "Task". Then go to your Github and copy the link. Go to Git bash App on your system, use the command "cd" to view your your folder directory. Use the command "ls" to view all your files in the folder directory. You will see the Folder "Task" Use the command "cd task" to go inside the folder then use "ls" to see all the files inside the folder. Next configure your Git account for the Github repository then clone your repository.

To configure your account use the command "git config --global user.name "Mamuda23" Then config your email use for Github "git config --global user.name Now you clone your repository by using the command "git clone (paste link copy from Github)" You will be able to see the same repository you have on Github.

Then use the command 'ls' to see the folder "kolhab-bootcamp-1". Use the command 'cd kolhab-bootcamp-1' to enter inside the Task directory. Use 'ls' to see the files, then you will see Readme file. Go to folder Task to create index.html, open, type random html and save them close your file.

Go to Git bash App to verify by using 'ls' you will see the list of the files. In order to upload the file on Github you need add on Git bash App, by using the command 'git add (file name) index.html" Use the command 'git status' you will see the new file you added 'index.html'

Commit then transfer the file to Github, in order to commit use the command 'git commit -m "(committed message)" file name. Now transfer to Github by the command 'git push -u origin master" you will be require to enter your login details of Github. Then go to Github account and refresh you will see the index.html then click on pull request, type the changes you want to make and click request.

SECOND TASK

On your Github at the top right click on new repository. Your will see username and option to name your repository. Then give optional description about what your repository contains. Then you choose who view your repository either public or it should be private. By default your repository is public. Initially the repository with Readme file then use optional give the type of language you want to use and the license then click on create repository