- Solution 1: Get the latest code and reset the code
 
git fetch origin
git reset --hard origin/[tag/branch/commit-id usually: master]| import random #bring in the random number | |
| import time | |
| number=random.randint(1, 200) #pick the number between 1 and 200 | |
| def intro(): | |
| print("May I ask you for your name?") | |
| name=input() #asks for the name | |
| print(name + ", we are going to play a game. I am thinking of a number between 1 and 200") | |
| time.sleep(.5) | |
| print("Go ahead. Guess!") | 
| HANGMANPICS = [''' | |
| +---+ | |
| | | | |
| | | |
| | | |
| | | |
| | | |
| =========''', ''' | |
| +---+ | 
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help | 
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout masterFetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master
| //SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.5.0 <0.9.0; | |
| contract Lottery { | |
| address payable[] public players; | |
| address public manager; | |