In: Computer Science
How do you upload a file on github? Please explain and give screenshots!!
What is a pull request? Please explain and give screenshots as to how to one!! (Also github)
Thanks :)
Github is hosting platform of code which includes control and collaboration.Using Github you can work on different projects at same time from different locations.
Uploading file a file on github:
Step1: Create a new repository
Step2: Go the main page of the repository.
Step3: You can see options to create a new new file or uploading an exisiting file.Click on upload an existing file.
Step4: Upon clicking uploading an existing file it will go to next page.
You can either drag files or click on choose your files to select a file from local system.
At bottom you can see commit changes button to commit after adding files.
Pull Request:
If you have changes in branch(way to work on various versions of a repository at one time), you can open a pull request.By default repository has one branch named main.
Pull Requests are mainly used in collabaration on Github.When a pull request is opened,you are making your changes and request someone to review and add our contribution and combine(merge) into their branch.
Difference in content from both branches is shown by Pull Requests.
a)To Create a Pull request:
Click on create a pull request to create.
b) Merge Pull Request:
Click on Merge pull request to merge.
You can even open pull requests in your own repository and merge them yourself.