- git status
Show the working tree status, i.e. what have I changed and what have I added. - git commit -a -m “my message”
Commit all my changes and store with the message “my message”. - git push origin
Push all my commits back to the remote server. - git tag
List the tags in the current branch. - git tag -a myTag -m “tag message”
Create a tag called myTag and store with the message “tag message”. - git show myTag
Show information about the tag myTag. - git branch myBranch
Create a branch called myBranch. - git branch
Display a list of all branches. - git merge myBranch
Merge the changes made on the current branch into myBranch. - git checkout myBranch
Switch code base to the branch myBranch.
Introduction I've recently started learning React. I've been a backend developer for a long time, but have started to love doing client side work. As they say, the best way to learn is to practise. So here is a simple joke application that I've written in React. The source code for the application can be found on GitHub at: https://github.com/doobrie/react-joke Creating the project Whilst practising, I've quite often created projects from scratch, but this is quite tedious as the same steps need to be taken for each project. I needed to create the project structure, configure Babel, write some control scripts etc. Instead of doing that this time, I've used the create-react-app tool to scaffold the basics of an application. npx create-react-app This sets up everything that you need to get started with a React app. Coding As this is a simple project, I've created one react component, function app() . I've created this as a functional c...
Comments
Post a Comment