Skip to content

Commit

Permalink
update git command
Browse files Browse the repository at this point in the history
  • Loading branch information
snowme34 committed Apr 4, 2019
1 parent 2f4ae9e commit dd0dbcc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cspell_dict_bash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,6 @@ LOCKD
TCPPORT
UDPPORT

Rickard
Rickard

untracked
9 changes: 9 additions & 0 deletions docs/source/reference/commands/git-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ git diff --name-status branch_a..branch_b
# https://stackoverflow.com/questions/4099742/how-to-compare-files-from-two-different-branches
git diff branch_a branch_b -- some.file
git diff branch_a..branch_b -- some.file

# remove local untracked files
# must have -i -n -f options to run this command
git clean -n # dry run
git clean -f # remove files
git clean -fd # remove files and directory
git clean -fX # remove ignored files
git clean -fdX # remove ignored files and directory
git clean -fdx # remove ignored and non-ignored files and directory
```

* [Git workflow and rebase vs merge questions](https://stackoverflow.com/questions/457927/git-workflow-and-rebase-vs-merge-questions)
Expand Down

0 comments on commit dd0dbcc

Please sign in to comment.