Skip to content
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

adding few git commands #4

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions How-to-begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ To add a specific file: `git add fileName.txt`

Note : To push it now, you need to use the force command (Careful!)<br>
`git push origin master --force`<br>

### Configure the author name and email address to be used with your commits
git config --global user.name "xyz"
git config --global user.email [email protected]

### View all the file diff
git diff
3 changes: 3 additions & 0 deletions Remote-Repos.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ And then:
### Reviewing pull requests
`git fetch upstream pull/PR_Number/head:branchName` </br>
`git checkout branchName`

### If you mess up, you can replace the changes in your working tree with the last content in head
git checkout -- <filename>