Skip to content

Instantly share code, notes, and snippets.

@conroywhitney
conroywhitney / prepare-commit-msg
Last active December 22, 2021 20:12 — forked from lukebergen/prepare-commit-msg
Git commit message hook for reviewed clubhouse
#!/usr/bin/env ruby
# Automatically adds clubhouse id and link to commit messages based on branch name
file = ARGV[0]
branch_path = `git symbolic-ref -q HEAD`.split("\n")[0] # Somthing like refs/heads/myBranchName
branch_name = branch_path.split("/").last
id = branch_name.split("-").last
non_ammend = `head -n1 #{file}` == "\n"
@conroywhitney
conroywhitney / private_fork.md
Created April 8, 2023 13:24 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git