Skip to content

Commit

Permalink
Add a table
Browse files Browse the repository at this point in the history
  • Loading branch information
tigertv committed Sep 2, 2019
1 parent e6e62cd commit e72d789
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# Git Notes

git add . : to add files of the current directory to the index

git commit --amend : to add the changes to the last commit

git checkout <filename> : to cancel the changes for a file

git checkout -b <branch> : to create and switch to a new branch

git branch -d <branch> : to delete a branch

git pull : to pull changes from the remote repository

git push : to push changes to the remote repository
Command | Description
-------------------------- | ---------------------------
`git add .` | to add files of the current directory to the index
`git commit --amend` | to add the changes to the last commit
`git checkout <filename>` | to cancel the changes for a file
`git checkout -b <branch>` | to create and switch to a new branch
`git branch -d <branch>` | to delete a branch
`git pull` | to pull changes from the remote repository
`git push` | to push changes to the remote repository

0 comments on commit e72d789

Please sign in to comment.