List of things we are going to cover
- What is git?
- Why to use git?
- What is a repository?
- How to use git effectively?
- tracking file changes
- adding files
- commiting changes
- git log
- commit message ethics
- creating and linking remote repository
- add collaborators on GitHub repository
- git push and git pull
- branches in Git
- creating a new branch
- switching to a different branch
- .gitignore
- conflicts/common issues between remote and local repository
- upstream branch does not exist
- cannot push changes upstream has some changes which doest not exist locally
- cannot push to remote repository changes are very large.
in next session
in next session
in next session
in next session
Fig. Difference between Remote and Local Repository
- Initialize a repository on your local machine
- Using
git initcommand (do git init onlyl once)
- Using
- Use command
git remote add origin <respository-url>
- When you have a stable version of your code.
- When you want to make a change but you are not sure if it will break existing code.
- When you did a very small change which is not going to improve your application.
-
You fixed something
- FIX: {what did you fixed}
- fixed an error
- updated links (html page)
- build error (react app)
- updated dependencies (python)
- and more
- FIX: {what did you fixed}
-
You added a new feature
- FEAT: {new feature description}
- you added a new webpage to a website
- created a new button
- basically any new feature into existing code
- FEAT: {new feature description}
-
You did a small change
- CHORE: {your small change}
- you updated background colour
- changed variable names
- updated documentation
- CHORE: {your small change}
-
You updated the documentation
- DOC: {what did you update}
- You made changes in the documentation
- you added some comments in the code to understand the code better
- DOC: {what did you update}

