From 282e97e306b96187e63f6cdd608b55e73fa1849f Mon Sep 17 00:00:00 2001 From: Dureksha Wasala <37532612+dcjc29@users.noreply.github.com> Date: Tue, 9 Oct 2018 18:03:08 +0530 Subject: [PATCH] Updated README.md Added instructions to install git,configure git,create local repository and push changes to Github repository --- README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c78a67e..bc56071 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,53 @@ # intro-to-github A repo to help people to get started with git and github +# Install GIT + +This is the link you to download git according to your operating system. +https://git-scm.com/downloads + +Then you can use git bash/git gui or git desktop to configure git. + +# Configure GIT + +- Right click on desktop and then click 'git bash here' +- Then type these commands one by one to configure + + 1) git config --global user.name "github username" + 2) git config --global user.emal "github email address" + + ** Username and Email must be inside double quotes + +# Create Repositories + +- These are the commands to make a new repository.If you are not in the mood to type commands,you can use the git gui to make repositor simply by a click. + + 1) git init + 2) git clone + + ** url - The URL of the project of you want to work in.This can be copied from the github project + +# Making Changes + +- After modifying the project files you need to right click inside the project folder and then click git bash here. +- Then type this command. + 1) git status + +- Next following command will show what are the changes happened after the last pull request + 2) git diff + +- Then type this command to add the file you need to be pull + 3)git add or git add . + ** "." will add all the changed files + +- Next enter a commit message using following command + 4)git commit -m "Commit Message" + ** commit message must be inside double quotes + +- Finally use git push to make changes to your repository on GitHub + + 5) git push + # How to Create a Pull Request @@ -13,4 +60,6 @@ A repo to help people to get started with git and github - Push the commit. For example, type "git push origin master". - Go back to the original repo. - Hit "new pull request" and compare between forks. - - Confirm the pull request and that's it! \ No newline at end of file + - Confirm the pull request and that's it! + +