Repository for the beginner's track. Make your own branch for this repo and name it team/<teamname> before your sub-team starts working
- There is a folder for backend and frontend each. There's separate read me files for each of them.
- Edit this file to add your name and github username to the list below
- Create a new folder for this repo
- Fork this repo
- Click on the fork button on the top right
- Select your github account
- Click on the clone button and copy the link
- Clone the repo into the folder
git clone git@github.com:ECLAIR-Robotics/Beginners-Track.git
- Follow the instructions in the backend and frontend read me files to set up the backend and frontend
git pull- Pulls the latest changes from the repogit add .- Adds all the files you have changed to the commitgit commit -m "commit message"- Commits the changes you have madegit push- Pushes the changes to the repogit checkout -b <branch name>- Creates a new branch and switches to itgit checkout <branch name>- Switches to the branchgit branch- Shows all the branchesgit merge <branch name>- Merges the branch into the current branchgit branch -d <branch name>- Deletes the branchgit status- Shows the status of the repogit log- Shows the commit historygit reset --hard <commit hash>- Resets the repo to the commitgit reset --hard origin/<branch name>- Resets the repo to the remote branchgit reset --hard HEAD^- Resets the repo to the previous commitgit reset --hard HEAD^^- Resets the repo to the commit before the previous commitcd- Change directoryls- List files in the current directorycd ..- Go back one directorycd <folder name>- Go into the foldermkdir- Make a new folderrm -rf <folder name>- Delete a folderrm <file name>- Delete a file
RPI.GPIO libraries don't run unless you run them on a Raspberry Pi. So you will have to SSH into a Raspberry Pi to test the code.
Only for the first Time
ssh testuser@<ip address>- SSH into the Raspberry Pisudo useradd -m <username>- Create a new user based on your team namesudo passwd <username>- Set a password for the usersudo usermod -a -G sudo <username>- Add the user to the sudo groupsudo mkdir /home/<username>- Make a folder for your usercd ~- Change directorygit clone git@github.com:ECLAIR-Robotics/Beginners-Track.git- Clone the repo
For every time next time
- Use the VS Code SSH extension to connect to the Raspberry Pi
- Use the open folder option to open the folder you cloned the repo into
- Use the terminal in VS Code to run the code
INSERT LEAD NAME HERE
Team Members INSERT NAME HERE