forked from agarwalrounak/Hello-World
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Closes #7 #8
Open
somya22
wants to merge
6
commits into
The-Codesis:master
Choose a base branch
from
somya22:master
base: master
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
Closes #7 #8
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7ecc02f
Update README.md
somya22 26a59de
Update README.md
somya22 a6ed3a0
Update README.md
somya22 0dae63f
Merge branch 'master' of https://github.com/somya22/Hello-World
somya22 e260d84
Commit changes
somya22 a80df2a
Commit changes
somya22 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 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 |
---|---|---|
|
@@ -23,6 +23,20 @@ git add -A | |
git commit -m "Your commit message" | ||
git push --set-upstream origin new-branch | ||
``` | ||
The git add command lets you add a file to the staging area. You can think of the staging area as a step before the commit process in git. | ||
As long as a changeset is in the staging area, git allows you to edit it as you like. | ||
The git add -A command however, finds all new and updated files everywhere throughout the project and add them to the staging area. | ||
|
||
* Inspecting a repository | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Take a look at github markdown to format the text in .md files link There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can format your changes using markdown :) for better readability |
||
``` | ||
git status | ||
``` | ||
The git status command displays the state of the working directory and the staging area. It simply shows you what's been going on with git add and git commit. | ||
|
||
``` | ||
git log | ||
``` | ||
Using the git log command, you can view the entire commit history using the default formatting. | ||
|
||
* Create a Pull Request by navigating to your forked repository and | ||
clicking the <kbd><b>New pull request</b></kbd> button on your left-hand side of the page. | ||
|
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.
you can use ' ` ' to add code snippets in a line, just like you use this '```' to add multi-line code snippets
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.
Replacing
git add
withgit add <file_name>
would be intuitive.