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 @@
+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 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
+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
+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
+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
+