Day 5: Git Zero To Hero ๐
Table of contents
Introduction To GIT ๐
There are some standard steps which we follow after GIT installation ...
Creating Repo: The below command will create a hidden folder .git and in simple wordsu can say by executing the above command in your respective folder you tell that this is my git folder and all from now-onwards git will take care of anything happens inside this folder/directory.
git init
For Making any changes: In our git repo we can use the below commands , I will discuss about each of these commands in future blogs . For now just give a glance as we are studying about each command in detail so chilxxx ๐
#here . refers to every file inside the folder git add file_name or git add . git status #to check the status git commit -m "message"
Parallel Developement: Let say you have a live website running xyz.com , 1000's of customer visit on xyz.com and u want to improve the animation of your website you cannot do any manipulations in your live website so what you do u will create a parallel branch name "ux_branch" and make changes on that branch and if u feel that the new animation which u have done is great then u can merge it to your main(live website) branch.If not then u can delete "ux_branch" so that it won't hinder the main website. For this we use below command to create new branch and merge it.
git branch "branch_name" #to create new branch git merge #to merge
Syncing Local Repo to remote repo: In this step we have to sync our local repo with the main remote repo i.e github repo.
git pull #to sync remote and local branch git push #to push the local branch changes remote repo
Yes , that's all ๐
Next Blog Teaser ๐
Three Stage GIT Architecture.
Thanks for reading ๐๐งก