RishBlogs

Git and Github

Github & Git

Resource: https://www.youtube.com/watch?v=Pp08lcCOwd8

Github — Distributed Version Control System


1
2
3
4
5
Central											
| * --> * --> * ---> * ---> (*) |(Final Node)
        |     \             /
        * ---->	* --> * --> * (Distributed)
	      Merge                            

Some commands



Pushing code to local repositry


1
2
3
4
5
6
<---- git [remove --cached]/reset <--														
|                                   |														
Files -> |------ Staging Area ------|
		  |															
          :Commit:|
                  : -> Ready to go to Local Repo.                                           

Branching


Git Stash


Queries


— Don’t delete .git file folder? what does it contain? META DATA about the git

Is there any special use of github desktop? or CLI is good enough?

— HTML (everything should be in lower case?)

— Is SSH good? shifted to todos

— Upstream/Downstream concept for “git stash -u”

Todos