Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.04 KB

shell_cheatsheet.md

File metadata and controls

50 lines (42 loc) · 1.04 KB

Table of Contents

Linux tools

find

General syntax:

find $search_folder -name $search_name -exec $command {} +

type flag

Use -type $type to set the the type of the files to be searched. Possible values:

  • d directory
  • f regular file
  • l symbolic link
  • and more

Git

Rebase

Change base branch

Convert

(commit 1) - master
                \-- (commit 2) - (commit 3) - first_branch
                                                \-- (commit 4) - (commit 5) - second_branch

to

(commit 1) - master
                |-- (commit 2) - (commit 3) - first_branch
                \-- (commit 4) - (commit 5) - second_branch

Do:

git checkout second_branch
git rebase --onto master first_branch second_branch

(Source: https://stackoverflow.com/questions/10853935/change-branch-base)