git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/bin/sh | |
| #Check the Drive Space Used by Cached Files | |
| du -sh /var/cache/apt/archives | |
| #Clean all the log file | |
| #for logs in `find /var/log -type f`; do > $logs; done | |
| logs=`find /var/log -type f` | |
| for i in $logs |
| import React, { createContext, useContext, useReducer } from "react"; | |
| import ReactDOM from "react-dom"; | |
| const CounterContext = createContext(); | |
| const reducer = (state, action) => { | |
| switch (action.type) { | |
| case "ADD_TO_COUNTER": { | |
| return { | |
| ...state, |
| import React from 'react'; | |
| class UserProfiles extends React.Component { | |
| constructor(){ | |
| super(); | |
| this.state = { | |
| name: {title: '', first: '', last: ''}, | |
| image: '' | |
| }; | |
| // fix the this value |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream