Install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Put this into your ~./.zshrc
file
push_quiet () {
branch_name=$(git rev-parse --abbrev-ref HEAD)
git push --quiet --set-upstream origin $branch_name
}
alias g=git
alias gp=push_quiet
- Clone repo
git clone https://github.com/latticehr/lattice.git
- Change directory into the cloned repo
cd lattice
- Get changes from github for this branch
git pull
- Create a new branch
git checkout -b [branch name goes here]
- Switch branches (I want to work on a different feature)
git checkout [branch name goes here]
- Write your new code
- See what changes we have on this branch
git diff
- Stage files to get ready to commit
git add [filename]
- See what changes are staged
git diff --staged
- Commit staged changes
git commit -m "Message you want to put in the commit
- Push changes to github
git push --quiet --set-upstream origin [branchname]
- Click link in resulting text to setup a PR
- Merge on github
- Go back to first step 0