Today I am going to share some most simple and easy steps how to use git .
How we can get a git repository data on our Personal computer
How to make changes to these files and then how to propose that merging of files to repository from where you have downloaded it
How to deal or remove some every basic errors that came during this process
So lets start --
- First of all go to link of directory or as we say repository on github like i am doing this for a MonoWeb Repository on link below
https://github.com/mono/webiste
Ths repository is repository of official website of Mono https://www.mono-project.com/
Ths repository is repository of official website of Mono https://www.mono-project.com/
- First of the the thing you must have is gitbash . You can Download and setup gitbash from here :-
1. Download Git for Windows here:
I downloaded Git-1.7.6-preview20110708.exe. It contains the full installer for official Git 1.7.6
2. Follow the instructions here exactly as it says.
3. Be sure to select these options:
- Use Git Bash only
- Checkout Windows-style, commit Unix-style line ending
After Succesfully instaling git . You will having gitbash application we will be using it in our futher article
These steps will also give Solution to error that came during pull or pushing data to git or cloning data from git . follow these simple steps will be answer for that .
Errors like
not a valid object name 'master'
First go to the website or file on github like i goto github.com/mono/webite and on the top there will something written Fork click on it then website will be forked to your github account like my repository is forked to https://github.com/bhallaheemanshu/webiste
Step 1first create a directory say website
Step 2
get inside the directory using change directory command as show in image below
Then clone the directory using following command with url from where you want to clone the data
Step 3
now again website you are cloned will be cloned inside your website directory get inside it and fire the command to add upstream
Step 4
Now fetch the brancher available using fetch upstream command
Step 5
Now Make some change to your files all the editing or insertion or new thing yo want to create
Step 6
Now pusht the repository you edited on your personal computer to the online repository to propose the changes
Step 7
Now all changes that i want to do are done and saved on my files that i have forked here at github.com/bhallaheemanshu/website
So to do them also on github.com/mono/website Login to your account and go to website repository or website original community like i am going to or goto link like i am going to github.com/mono/website then click on pull requests then click on create pull request
Then it choose your branch there and then it will show automatically what changes you are propsing then write the title and some summery and click on create . Now your request for proposing changes to online repository will be done
0 Comment to "using git making pull request and troubleshoot errors"
Post a Comment