0% found this document useful (0 votes)
4 views2 pages

Git Installation and Setup Guide

Uploaded by

trailokya1089
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Git Installation and Setup Guide

Uploaded by

trailokya1089
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

INSTALLATION OF GIT

--------------------------------

[Link] Install Git , download from the following url


[Link]

2: Download and install git


[Link]

3: Signup and create a account on GitHub


[Link]

Open the GitBash terminal

4: Add your github email and username to git


git config --global [Link] "yourGitHub@[Link]"
$git config --global [Link] "emailanilkumarm@[Link]"
git config --global [Link] "yourGitHubusername"
$git config --global [Link] "cubeiplkumar"
5: Open the git hub and create one repository
and copy the repository url
[Link]

6. Configure the Remote Repository in Developer local system

git clone <copy the repo url from github>


git clone [Link]

7: India@LAPTOP-VODHAM22 MINGW64 ~/desktop/samplerepo (main)

8: Now add some files into this folder


$touch [Link]
$git status
(here it will show the new file in red color)
$git add [Link]
( after adding the files, now check the status again)

[Optional: to add multiple files


$git add -A ]

$git status
(now, files are visible in green color, which indicates that files are added
successfully)
$git commit -m "added new file [Link]"

(Now open the git hub and check the new created repository and you don't find
any files are reflected because still we have not pushed the files into remote
repository)

step9: to check the log


$git log
step10. to check the files in local repository
$git show <commit id>
$git show 8e7f79a1429f474feb3a79b0312479fdc63d6503

Step11: git push -u origin main


___________________________________________________________________

The last basic configuration command will let you view your Git configurations.
Running this command is the same as asking for a copy of your contract:
$ git config --list

to check the latest logs

$git log -n
git log -2

to check the logs in shortcut , i.e it displays only ids of the commits.

$git log --oneline

To check the logs of different developers who commit the code into the repository
$git log --author=<devreponame>
$ git log --author=cubeiplkumar

===========================

You might also like