diff --git a/README.md b/README.md index 0d69d53..4cf8141 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # bud-git-tutorial Blockchain UNN Dev tutorial session on GIT/GITHUB + The section was great and awosome. What I learnt from the section what is git and git hub, the diffrent commands in git and git hub. + The section was really pratical and I lerabt alot \ No newline at end of file diff --git a/index.html b/index.html index d516bf3..7f355bf 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,67 @@ + BUD - Git tutorial -

Mastering GIT

- +
+

Mastering GIT

+ +
+

Basic CLI Commands

+ +
+
+

Initializing a local Git reprository

+

To get started usign Git, you dont necesarily jave to be a badass developer. TO initialize and start using Git right from your terminal, use the command git init

+
+
+

Staging and Comitis

+

Staging is a step before the comit process in Git. Adding a file to the staging area simply means letting Git know(track) that those files are ready for comit. To add file to the staging area, simply use git add ~file name~ . And to see files git is tracking simply sue git status

+

Comits are snapshots or milestone of your projects along the timeline of Git. They are the basic building block of a vison control system. To commit a file,simply use git commit-m "your message" and to see commits, use git log

+
+
+

Git Branches

+

A branch is a version of a git reprository, that diverges from the main wowrking reprository. Branch allows you to move back and forth between diffrent stages of a project. To create and move to a new branch, use the command git check-out-b ~branch name~

+

to see existing branch, run git branch. The default branch is usually master or main if you are comfortable with the changes, switch to the default branch, then run command git merge

+
+
+

Creating and Pushing To a Git Hub Reprositiry

+ +
+
+

Forking and Cloning

+

Forking is a Git hub operation ussed to clone a reprository and its content to your own Git hub account. This is usually used when you want to make an update to an existing repro i.e when you want to contribute to an oepn source

+

Cloning is a git operation used to clone a reprository and its content to your local macjine. To carry out this action, use the git clone ~repro-name~

+

Cloning and Forking are similarbut while forking is done on your Git hub account, cloning is done using git. To merge changes made to a fork on the main repro, you wound need to open a pull request, but with cloning you can push directly to the upstream branch if you have write acess

+
+
+

Pull Request

+

a pull request (or PR) is a way to alert a repro's owner that you want to make some changes to their code. It allows them to review the code and make sure it looks good before putting your changes on the primary branch

+
+
+ https://www.freecodecamp.org/news/how to write-a-good-readme-file/ +
\ No newline at end of file diff --git a/styles.css b/styles.css index e69de29..8351357 100644 --- a/styles.css +++ b/styles.css @@ -0,0 +1,38 @@ +*{ + font-family: Verdana, Geneva, Tahoma, sans-serif; + line-height: 1.6em; + box-sizing: border-box; + padding: ; + margin: ; +} +body{ + background: #f4f4f4; + font-size: 16px; + margin: 0; +} +.container{ + width: 80%; + margin: auto; + overflow: hidden; + +} +h1{ + background: coral; + color: #fff; + text-align: center; + padding: 10px; + border-radius: 5px; +} +#cli{ + font-family: Arial, Helvetica, sans-serif; + +} +#cli li{ + list-style: none; + line-height: 1.8em; +} +.push li{ + list-style: none; + padding: 0; + line-height: 1.8em; +} \ No newline at end of file