Wednesday, July 8, 2020

Gitting Ahead Hacking Git And GitHub Part 3

Git’ting Ahead Hacking Git And GitHub Part 3 Git’ting Ahead: Hacking Git And GitHub Part 3 Back Home Categories Online Courses Mock Interviews Webinars NEW Community Write for Us Categories Artificial Intelligence AI vs Machine Learning vs Deep LearningMachine Learning AlgorithmsArtificial Intelligence TutorialWhat is Deep LearningDeep Learning TutorialInstall TensorFlowDeep Learning with PythonBackpropagationTensorFlow TutorialConvolutional Neural Network TutorialVIEW ALL BI and Visualization What is TableauTableau TutorialTableau Interview QuestionsWhat is InformaticaInformatica Interview QuestionsPower BI TutorialPower BI Interview QuestionsOLTP vs OLAPQlikView TutorialAdvanced Excel Formulas TutorialVIEW ALL Big Data What is HadoopHadoop ArchitectureHadoop TutorialHadoop Interview QuestionsHadoop EcosystemData Science vs Big Data vs Data AnalyticsWhat is Big DataMapReduce TutorialPig TutorialSpark TutorialSpark Interview QuestionsBig Data TutorialHive TutorialVIEW ALL Blockchain Blockchain TutorialWhat is BlockchainHyperledger FabricWhat Is EthereumEthereum TutorialB lockchain ApplicationsSolidity TutorialBlockchain ProgrammingHow Blockchain WorksVIEW ALL Cloud Computing What is AWSAWS TutorialAWS CertificationAzure Interview QuestionsAzure TutorialWhat Is Cloud ComputingWhat Is SalesforceIoT TutorialSalesforce TutorialSalesforce Interview QuestionsVIEW ALL Cyber Security Cloud SecurityWhat is CryptographyNmap TutorialSQL Injection AttacksHow To Install Kali LinuxHow to become an Ethical Hacker?Footprinting in Ethical HackingNetwork Scanning for Ethical HackingARP SpoofingApplication SecurityVIEW ALL Data Science Python Pandas TutorialWhat is Machine LearningMachine Learning TutorialMachine Learning ProjectsMachine Learning Interview QuestionsWhat Is Data ScienceSAS TutorialR TutorialData Science ProjectsHow to become a data scientistData Science Interview QuestionsData Scientist SalaryVIEW ALL Data Warehousing and ETL What is Data WarehouseDimension Table in Data WarehousingData Warehousing Interview QuestionsData warehouse architectureTalend T utorialTalend ETL ToolTalend Interview QuestionsFact Table and its TypesInformatica TransformationsInformatica TutorialVIEW ALL Databases What is MySQLMySQL Data TypesSQL JoinsSQL Data TypesWhat is MongoDBMongoDB Interview QuestionsMySQL TutorialSQL Interview QuestionsSQL CommandsMySQL Interview QuestionsVIEW ALL DevOps What is DevOpsDevOps vs AgileDevOps ToolsDevOps TutorialHow To Become A DevOps EngineerDevOps Interview QuestionsWhat Is DockerDocker TutorialDocker Interview QuestionsWhat Is ChefWhat Is KubernetesKubernetes TutorialVIEW ALL Front End Web Development What is JavaScript â€" All You Need To Know About JavaScriptJavaScript TutorialJavaScript Interview QuestionsJavaScript FrameworksAngular TutorialAngular Interview QuestionsWhat is REST API?React TutorialReact vs AngularjQuery TutorialNode TutorialReact Interview QuestionsVIEW ALL Mobile Development Android TutorialAndroid Interview QuestionsAndroid ArchitectureAndroid SQLite DatabaseProgramming Git’ting Ahead: Hacki. .. DevOps (84 Blogs) Become a Certified Professional Git’ting Ahead: Hacking Git And GitHub Part 3 Last updated on May 22,2019 1.3K Views mahtab alam Bookmark Become a Certified Professional This is the third and final post in the Hacking Git and GitHub blog series. We have already covered some very important features of Git and GitHub in the previous blogs in the series, and in this post we will round it off by covering:Cloning a GitHub repositoryForking a GitHub repositoryCreating GitHub GistLearn how to embed Gist on a web pageBefore we talk about how to clone a GitHub repository, the question we need to ask is why we even need to clone a repository.Why clone a GitHub repository?Suppose you want to use some code that is available on GitHub as a public repository, you can copy the contents of that repository to your local system using GitHubs cloning feature.How to clone a GitHub repository?Lets say we want to play around with the code of screencasts repository of user c urran:We can clone al the code of screencasts repository to our local system, and this is an illustration of how its done.We create a local folder curranD3 and change the current directory to curranD3 and clone the remote repository under curranD3:Once the entire repository is cloned to your local system, you can notice that all the code is copied the same under the screencasts folder as shown here:Next up, we are going to talk about how to fork a GitHub repository and understand when we need to do it:Why fork a GitHub repository?A lot of times, you might need to create your own GitHub repository of a project that is already available. For this, we can fork the original GitHub repository to create one under our own GitHub account.Before we start with how to fork a repository, there are some important points to note about forkingAny changes made to the original repository will be reflected back to your forked repositories.If you make any changes to your forked repository, it will not be reflected back to the original repository, unless you make a pull request.How to fork a GitHub repository?Forking a GitHub repository is very simple. We will use the same repository (currans screencasts repository) but this time we will fork it. To fork a GitHub repository, just click on the Fork link at the upper right corner of the GitHub repository.Note that currans screencasts repo is already being forked 1507 times. Lets fork it by clicking the Fork link and you will see that repository under our account as shown here:Next, we are going to learn about Github Gist, understand what it is and how to use it?What is a GitHub Gist?Gists are a great way to share your work. You can share single files, parts of files, or full applications. Other people can search for gists. You can access gists at https://gist.github.com. Gists are usually used to share small piece of code. There are two types of gists; public and secret.Public Gists show up in Discover, where people can browse new gists as they get created. They are also searchable, so you can use them if youd like other people to find and see your work.Secret Gists dont show up in Discover and are not searchable. But note that secret gists arent private. If you send the URL of a secret gist to a friend, theyll be able to see it.Creating a Gist: Creating a gist is quite simple. Simply click on the Gist link on GitHub page.Here, we have created a GitHub gist named age-dob.js, which calculates the age from the given date-of-birth. Note that we automatically get JavaScript syntax highlighting as we have used the extension .js with the gist name. Click on Create Public Gist to create a public gist.Accessing all your Gists: You can access all your gists athttps://gist.github.com/GITHUB_USERNAMEHow to use GitHub Gist on a web site?Suppose you want to show the GitHub gist on your website, all you need to do is to embed the GitHub gist on your website, click on the Embed option as shown here:Copy the link and use tha t link in your HTML file to embed the GitHub gist on the webpage as shown here:This is how the embedded GitHub gist will look like. gist.Thats all for this post, hope you enjoyed it and found it helpful. All the best!Got a question for us? Please mention it in the comments section and we will get back to you.Related Posts:Get Started with Mastering Git and GithubGitting Ahead: Hacking Git and GitHub Part 1Gitting Ahead: Hacking Git and GitHub Part 2Recommended videos for you Top DevOps Interview Questions And Answers Watch Now Ansible Tutorial For Beginners Ansible Playbook Watch Now What is Docker DevOps Tool For Containerization Watch Now Devops : Automate Your Infrastructure With Puppet Watch Now 5 Best Practices In DevOps Culture Watch Now Continuous Integration With Jenkins Watch Now DevOps is Going to Replace SDLC! Learn Why Watch Now DevOps-Redefining your IT Strategy Watch Now DevOps Tutorial For Beginners Watch Now Puppet Tutorial DevOps Tool For Configuration Management Watch Now What is Git A Complete Git Tutorial For Beginners Watch Now What is DevOps A Beginners Guide To DevOps Watch Now What is Jenkins? Continuous Integration With Jenkins Watch NowRecommended blogs for you What Is Docker Docker Container ? A Deep Dive Into Docker ! Read Article Exploring Ansible Tower With A Hands-On Read Article How to use Puppet Modules for IT Infrastructure Automation? Read Article What are the common Git mistakes and how to fix them? Read Article What is Jenkins X and how is it Different from Jenkins? Read Article What is DevOps? DevOps Methodology, Principles Stages Explained Read Article What is Jenkins? | Jenkins For Continuous Integration | Edureka Read Article DevOps Periodic Table : The Ultimate Cheat Sheet Read Article DevOps Engineer Career Path: Your Guide To Bagging Top DevOps Jobs Read Article What is Docker Container? Containerize Your Application Using Docker Read Article ‘Git’ting Ahead: Hacking Git and GitHub Part 1 Read Article Git Reflog â€" How to recover a deleted branch that was not merged Read Article CI CD Pipeline Learn how to Setup a CI CD Pipeline from Scratch Read Article What Is Agile Methodology Know the What and How? Read Article DevOps is Neither a Method nor a Tool, its a Culture Read Article Ansible for AWS Managing Cloud Made Easy Read Article All You Need To Know About Continuous Integration With Jenkins Read Article Ansible Roles- Ultimate way to untangle your Playbooks Read Article Top 20 Git Commands with Example Read Article Install Git Git Installation On Windows And CentOS Read Article Comments 0 Comments Trending Courses in DevOps DevOps Certification Training72k Enrolled LearnersWeekend/WeekdayLive Class Reviews 5 (28700)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.