Learn about Git and GitHub in this tutorial. These are important tools for all developers to understand. Git and GitHub make it easier to manage different software versions and make it easier for multiple people to work on the same software project.
Git Installation - https://github.com/git-for-windows/gi...
Setup -
git config --global user.name “Rajiv Singh"
git config --global user.email "[email protected]"
ssh-keygen -t ed25519 -C "[email protected]"
add newly created key to github repo
INIT - turns any directory into a Git repository.
git clone command is used to create a copy of a specific repository or branch within a repository
git branch command is used to create a new pointer of commits.
Add | Commit | Push
git add command adds new or changed files in your working directory to the Git staging area.
git commit creates a commit, which is like a snapshot of your repository.
git push uploads all local branch commits to the corresponding remote branch.
PULL REQUEST
git pull git pull updates your current local working branch, and all of the remote tracking branches. It's a good idea to run git pull regularly on the branches you are working on locally.
git status git status shows the current state of your Git working directory and staging area.
Merge