task1 www.github.
com to create github account
=====
task 2====https://git-scm.com ## download git locally
Class 2-3
What is VCS or SCM
Types of VCS
What is DVC
What is working area, staging area, local repository.
Basic Commands
# git init
# git init -b (own branch name)
Will initialize the repository
# git status
To show the status
# git add . (code to be committed)
To move to staging
# git commit –m “commit message”
To push to local Repository
# git remote add origin (url of repository)
To add local Repository with remote repository
# git remote add origin
https://[email protected]/pawank0712020238/d
emooooooooooooooo/_git/demooooooooooooooo
# git push -u origin –all
# git push origin master
# git remote –v
# git push origin master(branch)
# git clone (url of repository)
# git diff (changes in working area)
# git diff –staged (changes in staging area) # note two hyphen
#git commit -a -m “to apend the staging”
To clone the Repository locally
what is the difference b/w Git and Git hub
What is the Tracked and untracked code.
tracked files are files that Git knows about.
Untracked files are everything else — any files in your working
directory that were not in your last snapshot and are not in your
staging area.
Class 4th
What is Branching
A branching strategy, therefore, is the strategy that software
development teams adopt when writing, merging and deploying
code when using a version control system. It is essentially a set
of rules that developers can follow to stipulate how they interact
with a shared codebase.
Note
Branching At the time of Development.
Branching at the time of Troubleshoot.
Branching at The time of production Troubleshoot.
Commands
# git branch bugfix or branch name
Will create new branch with name given
# git branch
Will show the list of branch
# git Checkout Bugfix or branch name
Branch will be switched to bugfix
# git checkout -b <demobranch>
will create and switch the branch
# git switch -c <demobranch01>
will create and switch branch
# git branch -d bugfix
to delete the branch bugfix
# git merge <source branch> <destination branch > #be on destination
branch
eg
#git merge demobranch master
# git branch -D bugfix
to delete the branch forcefully
Git Merging
Git merging combines sequences of commits into one unified history
of commits
✔Branches.
✔Branching In Depth.
✔Stashing.
# git stash
# git stash list
# git stash apply
# Git stash clear
✔Git Reset. # reset the code from staging to working area
✔Git Revert.
✔Forking.
✔cloning
Interviews questions
Version control system
What is VCS or SCM
Types of VCS
What do you mean by Centralised VCS
What is DVC
What do you mean by git config.
What is working area, staging area, local repository.
what is the difference b/w git and git hub
What is the Tracked and untracked code.
What is cherry-pick
What is repository.
What is Branching
What is branching strategy.
What is merging.
What is Git Push, Git Pull, Git Clone
Forking
What do you meant by centralized Repository
What is Git Stashing
What is commit
What do you mean by branch.
How you will check you commit id
What is git show or git log
What is the difference b/t git show and git log
What is Git Reset
What is Git revert
What Is gitignore
What do you mean by remote
How to delete the branch, normally or forcefully
What is git conflict
How to switch the branch (from one branch to another)
How to check the branches.
How to create the Branches.
What version of Git you worked.
How to check the version