Skip to content

Commit

Permalink
Merge pull request #4 from i-vikash/git_commands
Browse files Browse the repository at this point in the history
Added commands in How to begin and  remote repos.
  • Loading branch information
nb2998 authored Oct 1, 2018
2 parents 3e55ee7 + 0051e26 commit 81f7bdc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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>

0 comments on commit 81f7bdc

Please sign in to comment.