Skip to content

Instantly share code, notes, and snippets.

@nilesh-tawari
Last active January 21, 2019 09:07
Show Gist options
  • Select an option

  • Save nilesh-tawari/1e7f4e01639923f715fd62214ce4ba0c to your computer and use it in GitHub Desktop.

Select an option

Save nilesh-tawari/1e7f4e01639923f715fd62214ce4ba0c to your computer and use it in GitHub Desktop.

Revisions

  1. nilesh-tawari revised this gist Jan 21, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,8 @@ RESOURCE: https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unr
    git config user.name "nilesh-tawari"
    git config user.email "EMAIL"

    # tracked files
    git ls-tree --name-only --full-tree -r HEAD

    # clean the history
    git clone --mirror https://github.com/nilesh-tawari/fusion_list.git
    @@ -28,6 +30,7 @@ git reflog expire --expire=now --all && git gc --prune=now --aggressive
    git push



    # sync fork with master REF: https://help.github.com/articles/syncing-a-fork/

    git remote -v
  2. nilesh-tawari revised this gist Feb 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ git reflog expire --expire=now --all && git gc --prune=now --aggressive
    git push


    # update fork with master
    # sync fork with master REF: https://help.github.com/articles/syncing-a-fork/

    git remote -v
    git remote add upstream https://github.com/macarthur-lab/clinvar.git
  3. nilesh-tawari revised this gist Feb 13, 2018. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -26,3 +26,18 @@ java -jar ../../bfg-1.13.0.jar --delete-files CosmicBreakpointsExport.tsv.gz
    java -jar ../../bfg-1.13.0.jar --delete-files CosmicFusionExport.tsv.gz
    git reflog expire --expire=now --all && git gc --prune=now --aggressive
    git push


    # update fork with master

    git remote -v
    git remote add upstream https://github.com/macarthur-lab/clinvar.git
    git remote -v
    git fetch upstream
    git checkout master
    git merge upstream/master
    git status
    git add .
    git commit -m "check snsps"
    git push origin master

  4. nilesh-tawari revised this gist Feb 12, 2018. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -26,4 +26,3 @@ java -jar ../../bfg-1.13.0.jar --delete-files CosmicBreakpointsExport.tsv.gz
    java -jar ../../bfg-1.13.0.jar --delete-files CosmicFusionExport.tsv.gz
    git reflog expire --expire=now --all && git gc --prune=now --aggressive
    git push
    history
  5. nilesh-tawari revised this gist Feb 12, 2018. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,14 @@ RESOURCE: https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unr

    # configure git repo
    git config user.name "nilesh-tawari"
    git config user.email "EMAIL"
    git config user.email "EMAIL"


    # clean the history
    git clone --mirror https://github.com/nilesh-tawari/fusion_list.git
    cd fusion_list.git/
    java -jar ../../bfg-1.13.0.jar --delete-files CosmicBreakpointsExport.tsv.gz
    java -jar ../../bfg-1.13.0.jar --delete-files CosmicFusionExport.tsv.gz
    git reflog expire --expire=now --all && git gc --prune=now --aggressive
    git push
    history
  6. nilesh-tawari created this gist Feb 12, 2018.
    19 changes: 19 additions & 0 deletions Git_repository.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Create git repository and push to remote
    cd workspace/Clinical_genomics_framework/
    git init
    git add .
    git commit -m "Clinical genomics framework"
    echo "# Clinical_genomics_framework" >> README.md
    git add README.md
    git commit -m "Readme file"

    Create a repo online using browser then push local to remote

    git remote add origin https://github.com/nilesh-tawari/Clinical_genomics_framework.git
    git push -u origin master

    RESOURCE: https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories

    # configure git repo
    git config user.name "nilesh-tawari"
    git config user.email "EMAIL"