GitHub: Repository

GitHub: Repository
Techiio-author
Written by Debarghya DasJanuary 12, 2022
11 min read
Github
1 VIEWS 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWS SHARE
Techiio-author
Debarghya Das

Junior Front-End Developer

In this blog post, we will know what is GitHub Repository its feature's and how to create a new repository.

About GitHub

GitHub, Inc. is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, continuous integration, and wikis for every project. Headquartered in California, it has been a subsidiary of Microsoft since 2018.

blogpost

Defination GitHub Repository

GitHub repository is characterized as an area in the GitHub stage where the documents and codes relating to the tasks and their individual forms as a piece of amendment history are put away, made due, and utilized. One can talk about and deal with the whole undertaking's work inside the actual store. The archive goes about as a stage where one can perform cooperative work among colleagues and even across cross-practical groups. The store is likewise seen to be utilized for an assortment of client input, programming bug announcing, undertakings association. One more intriguing component that is utilized by the GitHub repository is asking and answering inquiries inside the archive and even making declarations about the venture. In this article, we will take a gander at the various components in the GitHub storehouse from top to bottom!

About GitHub Repository

Owning a repository can be at an individual level and even be at a level of sharing the ownership amongst other people in the organization. One can also restrict access to the repository in GitHub by changing the repository’s visibility. Even with the free version of GitHub, one can work with multiple repositories and unlimited collaborators with a feature set that is full. Even with private repositories, one can work in GitHub but only with the restricted feature set.

Creating a new repository

Since we are knowledgeable with the idea of GitHub store, in this part we will talk about the course of formation of another vault in GitHub. The storehouse can be made in an individual record as well as in an authoritative record given that there are adequate authorizations for the person to make an archive. While making an archive the proprietor can decide to confine the authorizations for the store inside the association so one considers the instinct behind the information security in the association. In this part, we will take a gander at the bit by bit method of making a storehouse in GitHub through a web interface, yet one can likewise utilize the GitHub order line connection point to make the vault. One can jump into gh repo make order to comprehend this further.

  • Step 1: Open the website https://github.com/ and log in to the account.
  • Step 2: Look at the top right corner for a + sign and click on that to expand the list and then click on New Repository.
  • Step 3: In case there is an existing repository and we need to create a repository with a similar directory structure, we can choose a template from the drop-down menu. This will be only visible if there is a repository template already present owned by the individual or the organization to be used which can be bootstrapped to the new repository.
  • Step 4: If a template is selected, optionally one can also select the options like including files from all the other branches as a part of inclusion from the template and not just the default template by selecting the option “Include all branches”.
  • Step 5: Next step is to select the owner as per the ownership requirement from the drop-down. There might be multiple owner names present in case the account has the permissions for the same.
  • Step 6: Under the Repository name we need to put the name of the repository and make sure that the name somehow explains what that code contains. There is a placeholder for putting in the description of the repository though it is an optional topic.
  • Step 7: Next step would be to choose the visibility of the repository. The 3 options available (subjected to the type of account) are Public, Internal and Private. In the below snip, the internal option is not present as the account is personal and not organizational.
  • Step 8: Next select the appropriate options like Add a README, Add .gitignore, Choose a license in accordance to what one needs to do in the repository.
  • Step 9: Final step to click on Create repository to finish the creation of the repository.

List GitHub Repository

Now that we are clear on how a new repository is created, we would now look at how to list down the repositories that are owned by the user or the organization. There are 2 ways that can be achieved:

1. Using the GitHub API: With the help of API, we can create a GET method in different applications, for example using octokit module in JavaScript.

2. Using the command line interface: Execute the command gh repo list [<owner>] [flags] in the command line to get the list of the repositories for the owner argument that is passed and matching the corresponding flags.

3. Web UI: In the web UI, https://github.com/ on the left-hand panel, we would also be able to see the list of repositories.

Parameters GitHub Repository

While using the GitHub API, there are various parameters that can be used to cover specific use cases. Some of the important ones are:

1. types: This is to specify the types of repositories that need to be returned.

2. sort: There are options viz. created, pushed, updates, full_name using which the list can be sorted.

3. direction: This option allows the ascending or descending order of sorting.

4. Per_page: This option allows sending input to restrict the number of inputs per page.

Working with file GitHub Repository

In the GitHub repository, working with files includes 3 actions namely:

1. Managing Files: All actions like adding, moving to edit, renaming, deleting a file resides in this use case.

2. Using Files: This includes navigating code in GitHub, changes tracking in the file, generating permanent links to the file, working on non-code files.

3. Management of large files: This action takes care of all processes that are required for managing large files in GitHub.

Conclusion

Archive in GitHub is a unified area in the disseminated adaptation control stage, GitHub, for empowering clients to work together and adjust the way of life of open source projects and stress forking code, sharing thoughts, etc.

GitHub
Git
GitHub Repository
1 VIEWS 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWS SHARE
Was this blog helpful?
techiio-price-plantechiio-price-plantechiio-price-plantechiio-price-plantechiio-price-plan
You must be Logged in to comment
Code Block
Techiio-author
Debarghya Das
Junior Front-End Developer
Techiio-followerTechiio-followerTechiio-followerTechiio-followerTechiio-follower
+4 more
74 Blog Posts
227 Discussion Threads
Trending Technologies
15
Software40
DevOps48
Frontend Development24
Backend Development20
Server Administration17
Linux Administration26
Data Center24
Sentry24
Terraform23
Ansible83
Docker70
Penetration Testing16
Kubernetes21
NGINX20
JenkinsX17
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance