WORK FLOW OF GIT AND GITHUB

Work flow of Git and Github

1. git init

 git init

The above image is the initial stage of our local repository. if we initiate that folder, with git init command the . git folder will be created.

2. Git add .

The second step we need to do is git add . all files are added to the staging are, now the files are tracked. (which are in green colour)

Git add

3. git commit -m “commit message”

After adding a file to the staging area we need to commit those message by doing commit message.

git commit

4. After committing, the next step will be adding files to the .git folder

 git folder

5.The last step will be successfully our local folder will be pushed to the github.

 github