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 branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
# Any line that starts with a pound sign (#) is known as a comment, Python knows to ignore comments | |
# Comments are useful for explaining what you are doing in a program to yourself or someone else who might be working on the same program | |
# Let's write a calculator program that has the computer ask the user for two number to calculate, then return the answer | |
# to have a program accept input from a user, we use the raw_input() function, Python automatically considers what the user types in as a string. | |
print("Please give me a number") | |
number1 = raw_input() # here's our first variable | |
print("Please give me another number") |