Skip to content

Instantly share code, notes, and snippets.

@adil1214
Last active July 27, 2020 16:15
Show Gist options
  • Save adil1214/85f379527679782a2401b3b627e96a3a to your computer and use it in GitHub Desktop.
Save adil1214/85f379527679782a2401b3b627e96a3a to your computer and use it in GitHub Desktop.

Revisions

  1. adil1214 revised this gist Jul 27, 2020. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion a.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,10 @@
    git log --oneline -n x

    # quickly peek the available scripts
    cat package.json | grep "scripts" -A 10
    cat package.json | grep "scripts" -A 10

    # clone a specific branch from a repo
    git clone --single-branch --branch <branchname> <remote-repo>

    # fetching all the branches and checking into one branch
    git clone --branch <branchname> url
  2. adil1214 created this gist Apr 20, 2019.
    5 changes: 5 additions & 0 deletions a.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # display x last commits one for each line
    git log --oneline -n x

    # quickly peek the available scripts
    cat package.json | grep "scripts" -A 10