git fetch origin && git checkout -b name-of-new-feature-branch origin/release
or
git fetch origin && git checkout -b release origin/release
Check out someone elses branch:
git fetch origin && git checkout name-of-branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Example pulled from my dotfiles | |
# git | |
alias g="git" | |
alias gs="git status" | |
alias gl="git l" | |
alias gcm="git commit -m" | |
alias ga="git add" | |
alias gd="git diff" | |
alias ga.="git add -A" | |
alias gco="git checkout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Using let | |
//the let keyword scopes to the nearest block, not function | |
// it prevents variable declarations from being moved to the top of the scope. This is called hoisting. | |
// loadingMessage and flashMessage are trapped in their braces, and can't be accessed outside of them. | |
<script src="./load-profiles.js"> | |
<script> | |
loadProfiles(["Prince", "MJ", "James Brown"]); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get to next tab: gt or GT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shift + curly brackes: moves paragraphs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Launch Python: | |
#cd anaconda | |
#open Launcher.app | |
ridership = pd.read_csv('https://raw.githubusercontent.com/zafia/talks/gh-pages/pandas-class/cta_ridership.csv') | |
ridership.loc[ridership.stationname.unique()] | |
ridership.loc[ridership.stationname.str.contains("Mo”)] | |
ridership.loc[ridership.stationname == "Morse"] | |
stations = ridership.groupby("stationname") => #<pandas.core.groupby.DataFrameGroupBy object at 0x102a3e310> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%div.title | |
%li #{customer.name} | |
%li #{customer.address.address_1} | |
%li #{customer.date_of_birth} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch origin | |
git checkout master | |
git merge --ff-only origin/master | |
git checkout the-branch-im-working-on | |
git merge --no-ff origin/master |
NewerOlder