Git Docs
Git Docs
Full Tutorial:
https://www.youtube.com/playlist?list=PL8WTXLSrtyWrQ5Tl50zkTeRc3bATyHRbX
Set Username:
git config –-global user.name "My Name"
List Configuration:
git config –list
add – adds new or changed files in your working directory to the Git staging area:
git add <-file-name->
OR
git add .
git init
To check branch:
git branch
To rename branch:
git branch -M main
To navigate:
git checkout <-branch-name->
To delete branch:
git branch -d <-branch-name->
Way 1:
To merge 2 branches:
git merge <-branch-name->
Way 2:
Pull Request:
It lets you tell others about changes you’ve pushed to a branch in a repository on GitHub.
Pull Command:
git pull origin main
- Used to fetch and download content from a remote repository and immediately update the local
repository to match that content.
An event that takes place when Git is unable to automatically resolve difference in code between two
commits.
Fork: A fork is a new repository that shares code and visibility setting with the original "upstream"
repository.