# Terminal
` mkdir ` --> make new directory
`touch` --> make new file
`cd` --> change directory
`cd ..` --> return one directory
`cd ../..` --> return two directory
`ls` --> list
`pwd` --> print working directory
`clear` --> clear terminal
# Git
` git init ` --> initialize/create the repository
` git status ` --> see the status of the files have been added or not
` git add . ` --> add the file changes to the repository
` git commit ` --> actually add the files to the repository
` git push ` --> add my code to remote repository
` git pull ` --> take the code from the remote repository
` git clone ` --> clone a project directly from GitHub by adding the repository link after the word "clone"
` git branch ` --> tells us on which branch we are highlighted with "*" and what other branches there are
` git branch + branch name ` --> create a new branch
` git branch + branche name` --> switch to another branch
` git marge + branche name` --> joins the two branches, the one we are in with the one created
# Upload files on GitHub
` git status ` --> see the status of the files, if they are red it means that the changes have not been added, if they are green it means that the changes have been added
` git add . ` --> add the changes made, update of the changed files
` git commit -m "Comment" ` --> see the status of the files
` git push -u origin branch name ` --> add my modified code to remote repository
# Adding a local repository to GitHub using Git
- create a new repository
- open Terminal
- change the current working directory to your local project
` git init -b main ` --> use the init command to initialize the local directory as a Git repository
` git init && git symbolic-ref HEAD refs/heads/main` --> if you’re using Git 2.27.1 or an earlier version,
` git add .` --> add the files in your new local repository
` git commit -m "Comment" ` --> commit the files that you've staged in your local repository
` git remote add origin <REMOTE_URL> ` --> add the URL for the remote repository where your local repository will be pushed
` git remote -v ` --> verifies the new remote URL
` git push -u origin main` --> pushes the changes in your local repository up to the remote repository you specified as the origin
# Testing with Web3.js & Truffle
`npm init --yes`
`npm install --save-dev hardhat`
`npm install --save-dev @nomiclabs/hardhat-truffle5 @nomiclabs/hardhat-web3 web3`
Enable the Truffle 5 plugin on your Hardhat config file by requiring it:
require("@nomiclabs/hardhat-truffle5");
`npx hardhat test`