Starting Commands:
git --versiongit init
Day 1 Commands:
- Initialising a Repo (
git init) - Checking the Status (
git status) - Add the files to Git's tracking system (
git add <filename or directory>) - Staging Area: This is a preview area, where you can either continue to commit or remove it before committing.
- Diff: Looking into the changes of the current file. (
git diff) - Cached Diff: For checking the diff of added files. (
git diff --cached) - Committing the Change (
git commit/git commit -m) - Commit Log: What all changes have you and your team has made. (
git log)
Day 2 Contents:
- How to create an account with GitHub.
- What are remotes?
- Adding the remotes.
- Pushing the code from local machine to remote server.
- Different Terminologies:
- Branches / Tags
- Commits
- One or More File Changes (addition, deletion or updates)
- Commits
- Branches / Tags
- Pulling the latest changes from remote server to local machine.
- Creating a new branch - CLI & GUI.
- Pushing branches.
- Creating a new tag using CLI.
- Pushing tags.
- Deleting the branches on GitHub Remotely.
- Why branching?
- Going back in Time.