GIT Full Content
GIT Full Content
Git –version
In this tutorial you will understand what Git is and how to use it on the
remote repository platforms, like GitHub.
Github
BitBucket
GitLab
t is used for:
Coding collaboration
Branch and Merge to allow for work on different parts and versions of
a project
Download the git and install it …open command prompt and check
git
Git –version
How to get the file from git repository to the local repository
Git clone
Cd ur foldername
---go to the git local repository there u can go to view and show the hidden
files
U can view .git folder this act as a bridge between the local
and github repository
Git status
Git add test1.txt
U changed to A
Now from staging area to git copy folder after commit has done
Now need to move the file from git copy folder to github
Git push origin main
Now delete one file from local –it will not reflect in the repo
Create a file in github repository now pull the file to the local
Git pull
---we don’t need to use clone because we don’t need to get the entire
repository
Any modification------add—commit---pull
Now create folder in the local repo and create a index.html file in it
Cd newfoldername
Git init
Git add .
Pull request ---we don’t have the right to access the main
Conflict --when both try to change the same file at the same time
----so manually correct the content and merge it with the main