There are 3 main git commands:
- git add - This is used to add files, folders, etc. to local staging environment. So Git knows context or objects you want to to push to your repo
- git commit - This is used to attach a contextual message to the your git files you'll be pushing
- git push - This pushes your local files to your git repo
Files that end in .md
are known as markdown files, an example of this would be a Readme file used in a git repository.
- README - A file used to provide basic instructions or a description of git repository, for instance what the git repository is for what it does, what your source code aims to achieve, literally anything you want people to read when they access your repository.
-
The markdown language has certain commands you can use to style your documents, similar to the workout website created.
-
- "**" : bold
- "_" or "*": italics
- ` text ` :
code blocks
- "#" : header-size-1,
"##" : header-size-2,
"###" : header-size-3 - <html tags> : you can use many html tags your familiar with as well as the markdown commands to format and style the documents.
-
- git checkout
<branch-name>
- To switch to a different branch - git checkout -b
<new-branch-name>
- To create a new branch [Note: branch won't be created until you actually push to the new branch]
- To develop logical reasoning - it's better to try and figure things out before using the net, in doing so you learn a lot more. e.g. learning how to do other things which might be useful in the future.