you can only really use Git if you understand how Git works
Repository
You get a .git folder when you do git init or git clone for the first time. That's your repository. Sometimes also referred to as local repository.
A git repository contains, among other things, the following:
- A set of commit objects.
- A set of references to commit objects, called heads (branch, tag and SHA1 names are types of head).
Remote Repository
If you have cloned from somewhere, so the URL/path (yes it can be local or on network also) you used to clone contains your remote repository. It is identical to what you get in your .git folder after cloning. `git remote -v` command lists all remotes available in the current repository and it's URL.
How GIT stores your commits or commit objects
A commit object contains 3 main things:
- Reference to the parent commit
- Changes (adds/updates/deletes of words/lines/files) since parent commit or changes of this commit (it doesn't store whole file as it happens in centralized Version Control Systems like SVN/TFS/VSS/Perforce)
- An SHA1 name(38f7a44232faf4651dc085495e4ea770c951d7b2), a 40-character string that uniquely identifies the commit object. The name is composed of a hash of relevant aspects of the commit i.e. changes, timestamp, parent commit SHA1 name, author etc.
Branches
Branches are basically references of commits or easy way to refer to commits i.e. ugly SHA1 name. In some of the cases when you merge/rebase, these markers for SHA1 name move from one commit to another commit rather than moving/modifying around multiple commits. We will get to know more about it in upcoming parts of this series.
Good article!
ReplyDeleteGreat Article
DeleteProjects for ECE Final Year Students Final Year Project Centers in Chennai
Really it was good information and good article. Keep more sharing. Web Design Companies Bangalore | Website Designing Bangalore
ReplyDeletevIt was a great information and Its really worth reading it. The author did an mind blowing work by describing each and every concept in detail. Thanks for such an informative post. Please keep up your good work.
ReplyDeleteECE Colleges in Chennai
Its great Article!!! I have a getting the some good massage in your post, Thank you for sharing your great information...Keep do this kind off articles.
ReplyDeleteProfessional Website Development Companies Bangalore | Top Website Design Company In Bangalore | Best Website Development Services Bangalore
This comment has been removed by the author.
ReplyDeleteThis is very helpful. This gives great understanding of how Git repository functions.
ReplyDeleteHi,
ReplyDeleteThanks for sharing a very interesting article about Understanding what GIT does under the hood rather than only learning commands and wondering. This is very useful information for online blog review readers. Keep it up such a great article like this.
Regards,
WondersMind,
Web Design Company Bangalore
First this is a really Creative and Unique Article. Well, the main reason of me sharing my post here is that, We being the Digital Marketing Company In India are open for Partnerships with Mobile App Development, Website Development and Graphics related company !
ReplyDeleteGet in touch with the Digital Marketing Services In India for more information
This comment has been removed by the author.
ReplyDeleteWeb developers are the future of technologies
ReplyDeletehttps://cuion.in/
perde modelleri
ReplyDeletesms onay
mobil ödeme bozdurma
nft nasıl alınır
Ankara evden eve nakliyat
TRAFİK SİGORTASİ
DEDEKTOR
Site kurma
aşk kitapları
beykoz lg klima servisi
ReplyDeleteüsküdar lg klima servisi
üsküdar alarko carrier klima servisi
üsküdar daikin klima servisi
pendik toshiba klima servisi
pendik beko klima servisi
tuzla lg klima servisi
çekmeköy toshiba klima servisi
ataşehir bosch klima servisi
Good content. You write beautiful things.
ReplyDeletevbet
hacklink
mrbahis
sportsbet
hacklink
sportsbet
mrbahis
vbet
korsan taksi
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
HFP8NW