-
Notifications
You must be signed in to change notification settings - Fork 0
Assignment #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
namraschazil
wants to merge
2
commits into
main
Choose a base branch
from
assignment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Assignment #1
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,20 @@ | ||
|
|
||
| Git Assignment - namraschazil | ||
|
|
||
| a. What is an issue? Issues are items that are created in a repository to plan, discuss and track work. | ||
|
|
||
| b. What is a pull request? Pull requests are a means of conveying the changes you have made to a branch in a repository on Github | ||
|
|
||
| c. How do I open up a pull request? Firstly we need to fork the repository to our own username account. From there we click ‘Compare and pull request’ to create pull request for the associated branch. Then we click the 'compare across forks' icon so that our base dropdown has the upstream repository we want to merge changes into and the base says main. We then add a title and description for our pull requests before finally selecting “create pull request”. | ||
|
|
||
| d. Give me a step by step guide on how to add someone to your repository. Firstly please know the username of the person you are inviting as a colloborator to a personal repository. Then on the Github webpage go to the main page of the repository. Open the settings tab in the desired respository, go to Access section and click on Collaborators. From there Add people and type their username to add them to the repository. The user will receieve a notification for an invitation which they have to accept to be able to edit the repository. | ||
|
|
||
| e. What is the difference between git and GitHub? Git is a version control system that allows us to track changes to our code whereas GitHub is a web-based hosting service for git repositories | ||
|
|
||
| f. What does git diff do? Git diff is a multi-use git command that takes two input data sets and outputs the changes between them. | ||
|
|
||
| g. What is the main branch? It is the default branch in a repository and is the original thread of code for a project’s codebase. When someone visits a repository and forks or clones the main branch, is gets checked out and served down to the user’s computer. | ||
|
|
||
| h. Besides our initial commit if it is a new repository, should we directly push our changes directly into the main branch? We should make a branch of the main and commit changes to it as we go. This will allow us to easily review changes and track issues in our codebase as compared to working directly in the main branch. | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forking repo is not a mandatory step in creating pull request