What is Git/GitHub? How to download / install it?

git and github

What is Git / GitHub?

Git और GitHub दो अलग-अलग Tools हैं जो Code को Processed करने, Version Control करने और Code के साथ काम करने के लिए Use होते हैं। ये Tools विभिन्न Team द्वारा Mutual Support और Organizational Work को बढ़ाने में मदद करते हैं।

Git, एक Financial Control System है, Code का Version Control करती है जो आपको एक Central Support और Management के बिना Code Exchange की अनुमति देती है। यह आपको पिछले Versions को रखने, विभिन्न Branches पर Work करने, Single Code Base के Operation और अधिक करने की अनुमति देता है। यह एक Extended Command Line tools है और इसे Command Line या Graphical User Interface (GUI) के माध्यम से उपयोग किया जा सकता है।

GitHub, एक Online Hosting Service है जो Git पर आधारित Organizational Resources को प्रदान करती है। इसमें Code Repository को Organized रूप में रखा जाता है, जिसमें Team के Members अपने Modifies Add कर सकते हैं, Errors को Report कर सकते हैं और Collaborative रूप से Work कर सकते हैं। यह एक Specialty Package और Management Features का Inventory है जिसमें Tracking, और Steps को Management किया जा सकता है।

Use of Git / GitHub

  • Integrated Work: Git और GitHub Team में Collaboration करने का एक बेहतर माध्यम प्रदान करते हैं। इससे आप विभिन्न Team Members के Modifications को Organized रूप में देख सकते हैं और एकसाथ Work कर सकते हैं।

  • Version Controls: Git, Code के Version Control करने की सुविधा प्रदान करता है, जिससे आप पिछले Versions को रख सकते हैं और Exchange को Track कर सकते हैं। यह Exchange को Forget और Change होने से बचाता है और आपको किसी भी समय इत्यादि Code को वापस ले आने की सुविधा देता है।

  • Smooth Editing: Git और GitHub User Code कोड के साथ Work करने के लिए अन्य Users के Edits को आसानी से Integrate करने की अनुमति देते हैं। इससे विभिन्न Team Members एकसाथ Code पर Work कर सकते हैं और Contrast को अलग-अलग Branches में Managed कर सकते हैं।

Download / Installation

  1. Git Download: 

    • Git को आपके Operating System के लिए उपलब्ध Website से Download करें (https://git-scm.com/downloads)। अपने System के अनुसार सही Version का चयन करें और Installer के माध्यम से Installation Process पूरी करें।

  2. GitHub पर आपके पास GitHub Account नहीं है, तो https://github.com पर जाएं और “Sign up” Option का चयन करें। अपनी Description Enter करें, User Name और Password बनाएं और Account बनाने के लिए आवश्यक Steps का पालन करें।

  3. Git Configure:

    • Git को Install करने के बाद, User Name और Email Code के साथ जुड़ने के लिए Configure करें। यदि आप Terminal का Use कर रहे हैं, तो आवश्यकतानुसार निम्नलिखित Command को एक New Terminal में Type करें:

				
					$ git config --global user.name "your_name"
$ git config --global user.email "your_email"
				
			
  1. GitHub पर Repository बनाएं:

    • आपके GitHub Account में Login करें और “New Repository” Button पर Click करें। अपने Repository के लिए एक Name और Legality Setting दें और “Create repository” पर Click करें।

  2. Local Git Repository बनाएं: 

    • अपने System में Git Command Area में जाएं और अपने Code के लिए एक New Folder बनाएं। Folder में जाएं और निम्नलिखित Command को Type करें:

				
					$ git init
				
			
  1. Remote GitHub Repository से जुड़ें:
    • आपके Local Repository को Remote GitHub Repository से जोड़ने के लिए निम्नलिखित Command को Type करें:
				
					$ git remote add origin Repository_URL
				
			
    • यहां, “Repository_URL” को अपने GitHub Repository के URL से बदलें।
  1. Stage and commit changes:
    • निम्न Command का Use करके Staging Area में File को Add करते है:
				
					$ git add <filename>
				
			
    • आप git add . का भी उपयोग कर सकते हैं। सभी Modified Files जोड़ने के लिए.
    • निम्नलिखित Command का उपयोग करके एक वर्णनात्मक संदेश (Descriptive Message) के साथ Commit करते है:
				
					$ git commit -m "Your commit message"
				
			
  1. Working with branches:
    • इस Command का उपयोग  Repository में सभी Branches को देखने के लिए किया जाता है:
				
					$ git branch
				
			
    • इस Command का उपयोग करके एक नई Branch बनाने के लिए किया जाता है:
				
					$ git branch <branchname>
				
			
    • इस Command का उपयोग करके किसी Branch में Switch कर सकते है:
				
					$ git checkout <branchname>
				
			
    • इस Command का उपयोग करके  एक Branch से दूसरी Branch में Marge करने के लिए किया जाता है:
				
					$ git merge <branchname>
				
			
  1. Pushing and pulling changes:
    • इस Command का उपयोग करके अपने Local Repository को Remote Repository (उदाहरण के लिए, GitHub पर) से Connect करने के लिए किया जाता है:
				
					$ git remote add origin <remote-url>
				
			
    • इस Command का उपयोग करके अपने Local Changes को Remote Repository में Push करने के लिए किया जाता है:
				
					$ git push origin <branchname>
				
			
    • इस Command का उपयोग करके Remote Repository से Local Repository में Latest Changes को Pull करने के लिए किया जाता है:
				
					$ git pull origin <branchname>
				
			

इसके बाद, आप Git और GitHub का उपयोग करके Code को Processed करने और Code के साथ Support करने के लिए तैयार हैं।

Facebook
Twitter
LinkedIn

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top