Skip to content

Instantly share code, notes, and snippets.

@koraysels
Last active May 8, 2023 11:22
Show Gist options
  • Save koraysels/b2f093f4f6ebc8b01d752bf7f7850e8c to your computer and use it in GitHub Desktop.
Save koraysels/b2f093f4f6ebc8b01d752bf7f7850e8c to your computer and use it in GitHub Desktop.

Revisions

  1. koraysels revised this gist May 8, 2023. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions clonefromCSV.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    #written by koray sels

    # Define the CSV file
    csv_file="repos.csv"

    # Read the CSV file line by line
    while IFS=',' read -r name url; do
    # Clone the repository
    git clone "$url" "$name"
    done < "$csv_file"
  2. koraysels revised this gist Sep 21, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _clone.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ while read repo; do
    git clone "$repo"
    done < ../INF101AB.txt

    cd INF102AB
    cd ../INF102AB
    while read repo; do
    git clone "$repo"
    done < ../INF102AB.txt
  3. koraysels revised this gist Sep 21, 2022. No changes.
  4. koraysels revised this gist Sep 21, 2022. 2 changed files with 7 additions and 0 deletions.
    File renamed without changes.
    7 changes: 7 additions & 0 deletions _update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env bash

    find INF101AB/. -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} fetch -u origin \;
    find INF101AB/. -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} reset --hard HEAD \;

    find INF102AB/. -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} fetch -u origin \;
    find INF102AB/. -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} reset --hard HEAD \;
  5. koraysels revised this gist Sep 21, 2022. No changes.
  6. koraysels created this gist Sep 21, 2022.
    11 changes: 11 additions & 0 deletions clone.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/usr/bin/env bash

    cd INF101AB
    while read repo; do
    git clone "$repo"
    done < ../INF101AB.txt

    cd INF102AB
    while read repo; do
    git clone "$repo"
    done < ../INF102AB.txt