Skip to content

Instantly share code, notes, and snippets.

@yoshi415
yoshi415 / git-recentco
Created Jan 15, 2021 — forked from fritz-c/git-recentco
Git: Check out a branch from a list of recently checked out branches/tags/commits
View git-recentco
#!/usr/bin/env bash
# Source: https://gist.github.com/fritz-c/c1e528b09bc1c0827a3c
# Original: https://gist.github.com/jordan-brough/48e2803c0ffa6dc2e0bd
# Download this script as "git-recentco" (no extension), chmod it to be executable and put it in your
# path somewhere (e.g. /usr/bin). You can then use it via `git recentco` from inside any git repo.
# Example:
#
View setup.sh
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo ""
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo ""
View mapDispatchToProps.js
// previous
componentWillMount() {
const { fetchSchedule, someOtherMethod, taskerInfo: { user_id } } = this.props;
fetchSchedule(user_id);
someOtherMethod();
}
export default connect(mapStateToProps, {
...recommendationActions,