Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Get all branches in the repository
branches=$(git branch --list)
# Iterate through each branch
for branch in $branches; do
# Remove leading asterisk from branch name
branch=${branch#* }
# Checkout the branch
#!/bin/bash
# Get all folders in main branch
folders=$(ls -d */)
# Iterate through each folder
for folder in $folders; do
# Remove trailing slash from folder name
folder=${folder%/}
# Convert folder name to lowercase and add hyphen before uppercase letter, except the first letter
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
181/bin/bash
2 android studio projects/home/SUSER/AndroidstudioProjects" 3 ssh config/home/SUSER/.ssh 4gitkraken config/home/SUSER/.gitkraken"
5git config/home/SUSER/.gitconfig" 6 downloads/home/SUSER/Téléchargements
7
9 if tdsdownloads" 1: