- create a new environment
- conda create -n myenv python=3.7
- delete an environment
- conda env remove --name myenv
- show environments
- conda env list
- create a tag
- git tag -a v0.1 -m "notes about the tag" af48faf
- push tags to remote
- git push origin --tags
- delete a tag locally
- git tag -d v0.1
- delete a tag remote
- git push origin --delete v0.1
- make local copy of upstream PR branch:
- git fetch upstream refs/pull/PR_NUMBER/head:LOCAL_BRANCH_NAME
- list contributors between two tags (or branches/hashes)
- git shortlog -s -n 1.0.0..2.0.0
- git grep, excluding a folder
- git grep -F my_search_string ":(exclude)docs/**"
- install from a github branch
- pip install git+https://github.com/kanderso-nrel/pvfactors.git@sparse
Collapsible section (source):
<details> <summary>Click to expand!</summary> ```python print('Hello, world!') ``` </details>
- Turn warnings into errors
- pytest pvlib/tests/test_modelchain.py -W error::pvlib._deprecation.pvlibDeprecationWarning