VmTutes Git-Hub
- What is Github
- Overview of github
- Github account creation
- Difference between git & github
- Difference with other tools
- create repo in local machine and push to github
- Clone existing repos from github
- Managing tags remotely
- fetch and pull
- Workflow
- Forking Repos
- pull request
- Deleting and renaming GitHub Repos
- gitHub
- Bitbucket
- Gitlab ...etc
GitHub is a website and cloud-based service that helps developers store and manage their code, as well as track and control changes to their code.
- is a website to upload repositories online
- Provides backup remotely
Sign up https://github.com/
Note :- how to create acc, steps are in "github installation folder" in google drive
- git is a tool <--> github is a website (github.com)
- git is Command line interface(CLI) <--> github is Graphical user interface(GUI)
- we can't view data in bare repo <--> but we can view & do all actions in bare repo
- bare is bare only here <--> but, bare repo you can convert into non-bare here
- here we are creating non-bare by cloning bare repo <--> but, directly we can create/init non-bare
- local <--> remotely
GitHub PAT:- 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
@ it Provides nice visual interface to repo
@ makes user collaboration easier
@ security
@ 24/7 support
@ user friendly
@ flexibility
@ it provides backup for repo's
@ microsoft take over
@ git init
@ git add README.md
@ git commit -m "first commit"
@ git remote add origin https://github.com/VmTutes/hello.git
@ git push -u origin master
@ username:-
@ password:- PAT Token
Note:- to generate PAT token go to settings/developer-settings/personal-access-token/classic/generate-newtoken
@ clone existing repository from github to your local machine
@ git clone https://github.com/VmTutes/Vinodh-Machireddy-Tutorials.git
@ change some data and add, commit
@ git push (or) git push origin master
to create tag
@ git tag <tag_name>
push tags from local repo to github repo
@ git push origin --tags
to delete tags remotely in github
@ git push origin -d <tag_name>
to delete tags locally
@ git tag -d <tag_name>
pull = fetch + merge
- fetch:- it just download the changes to local machine but it will not integerate.
- merge:- it integrates to local repo of git
| Add | Commit | |
|------------------------>|---------------------->| |
|----------------Commit -a ---------------------->| git push |
| | |----------------------------->|
Working Dir Index Commiting Area Remote Repository(GitHub)
(work space) (Staging) (HEAD) |
| | |<----------git fetch----------|
|<-------------------Merge------------------------| |
| | | |
|<----------------------------------Pull-----------------------------------------|
|<--------------------diff HEAD------------------>| |
|<----------diff--------->|
cloning others public repos into our account to contribute changes.
go to repository settings page and rename, delete.
https://github.com/VmTutes/Vinodh-Machireddy-Tutorials/settings
=========THE END=======
VmTutes, +91-7204143230(WhatsApp/Call), Email:- Vinodh-Machireddy@VmTutes.com