Notes taken from GitHub Tutorial
Git Hub Tutorial: EDUREKA
Git is a distributed version control that supports
distributed non-linear workflows by providing assurance for developing quality
software.
Features of Git:
- Lightweight - Uses lossless compression technique to compress the data
- Speed – GIT is 10 times faster that other version control softwares. Reason – it is written in C.
- Secure – Uses SHA1 to name and identify objects
Repository:
A directory or storage space where your projects live in.
There are two types of repository.
- · Central Repository
- · Local Repository
Git Operations and commands:
- · Intall Git for windows
- · Navigate to a folder where you want to create your project.
- · Right click and select Git bash here option
- · >Git init
- · Above command will initiate the empty git repository in local folder.
$ git add -A :
Command to add all the modified and new files
$ git commit -a -m “git commit message” : command to commit
all files.
$ git log – to view the history.
- Git pull = git fetch + git merge
- Rebasing is done to get a simpler project history.
After running the above command only authentication is
successful and you can push the changes to the repository. The key will become green only after
authentication.
To revert to previous
commit – copy the first 8 characters commit hash and use it the command like
below.




















Comments
Post a Comment