-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
13 deletions.
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 |
---|---|---|
@@ -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 | ||
|