- Do you have an Github/GitLab account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| # Put this into your .zhrc | |
| DEPLOY_FLAG=0 | |
| # Override the 'preexec' function to intercept commands before they are executed | |
| function preexec() { | |
| # Get the command as input | |
| local command="$1" | |
| # Set the flag if the command contains "deploy" |
| #!/bin/bash | |
| # Save the current branch name | |
| current_branch=$(git rev-parse --abbrev-ref HEAD) | |
| if [ $? -ne 0 ]; then | |
| echo "Error: Failed to get the current branch name." | |
| exit 1 | |
| fi | |
| # Set target branch to 'master' or the provided argument |
| #!/bin/sh | |
| # TODO: | |
| # - Allow for splitting the same file into multiple branches. | |
| # - If there are manual commits apart from the automatic merges and (split-branch) commits, <do something>. `git merge-base` is useful here. | |
| # Design: | |
| # - The script should be run from the branch that is being split. | |
| # - The script accepts the target branch as an argument. | |
| # - The script will automatically merge the target branch into the source branch if needed. |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| ### Keybase proof | |
| I hereby claim: | |
| * I am ierceg on github. | |
| * I am ierceg (https://keybase.io/ierceg) on keybase. | |
| * I have a public key ASD9oiteKy0QvDlEto0XrP6hFcFcTDnu8CZLKFnYPsqxvQo | |
| To claim this, I am signing this object: |
| #!/bin/bash | |
| # As seen here https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced | |
| if [[ $0 == $BASH_SOURCE ]]; then | |
| echo 'You must run this script as `source export_envvars.sh` for it to export the envvars.' | |
| else | |
| if [[ -z $1 ]]; then | |
| echo 'You must provide name of the envvars file.' | |
| else | |
| # As seen here http://stackoverflow.com/questions/10929453/read-a-file-line-by-line-assigning-the-value-to-a-variable |
| // Run this script from a directory above the packages you are analyzing | |
| /* global process */ | |
| 'use strict'; | |
| var _ = require('lodash'); | |
| var glob = require('glob'); | |
| var path = require('path'); |
| #!/bin/bash | |
| # Shell Script for super-respositores that executes git on all sub-repositories | |
| # Homepage at http://www.bitweaver.org/wiki/supergit | |
| # Licensed under the GPL | |
| # Authors: github.com/spiderr | |
| function usage { | |
| appName=`basename $0` | |
| echo "Welcome to $appName. It acts on all directories in your project as if they were sub-respositories. For most commands, you simply type what you would normally for git, however you simply type $appName with desired parameters in the super-repository root of your project. For example:" | |
| echo "-- To clone, type '$appName [email protected]:bitweaver/bitweaver.git -b DEV testbw' which will clone, then intiliaze + update submodules and checkout the master branch for each submodule" |
I hereby claim:
To claim this, I am signing this object: