Git and Github
Git and Github
GitHUB
What is Git?
Git is a distributed version control system (VCS).
New Updates
Project Files
Security Updates
Bug Fix
New Updates
Project Files
Security Updates
What is VCS?
Every time you make a change, whether it’s adding
a sentence to a document or altering a line of code,
the VCS records and saves the outcome.
project project-1 project-2 project-final
project-final1 project-finalfinal
Project Files
Project Project
Project
Why VCS?
Backup and Restore: Files are safe against accidental losses or mistakes.
Branching and Merging: Users can diverge from the main base of code,
experiment, and then bring changes back in line without losing work.
Tracking Changes: You can see specific changes made and by whom.
MPRASHANT
Installing Git
Step-by-step installation of Git.
Configuring Git with your username and
email.
Configure Git with Username and Email
Logging in Git
Useful Log Options
Remote Repo
A remote repository refers to a version
of your project that resides on a
network server or a hosted repository
on the internet.
Git HUB
Adding Remote Repo
git remote
git remote -v
git remote show origin (to get more info about remote)
git clone
git pull
Git status To check for any change in the repo
Gitignore
Git Ignore
In case you don’t want to commit some files from your
working directories then add those files name in
.gitignore file.
Git Clean
MPRASHANT
Git Tags
Git Tagging
To create annotated tags
git tag -a v1.0 -m “My version 1.0”
In case in future, if you wanna give patch for v1.2 release let’s say
git checkout -b version2 v2.0.0 (it will create new branch also)
MPRASHANT