Nitin Agrawal
Contact -
  • Home
  • Interviews
    • InterviewFacts
    • Resume Thoughts
    • Companies >
      • InvestmentBanks >
        • ECS
        • Bank Of America
        • WesternUnion
        • WellsFargo
      • ProductBasedCompanies >
        • CA Technologies
        • Model N India
        • Verizon Media
        • Oracle & GoJek
        • IVY Computec
        • Samsung
        • ClearWaterAnalytics
        • ADP
        • ServiceNow
        • Pubmatic
        • Expedia
        • Amphora
        • CDK Global
        • Delphix
        • Fractal Enterprises LLP
        • CDK Global
        • Tide-Banking
        • Epic
      • ServiceBasedCompanies >
        • ASG World Wide Pvt Ltd
        • Paraxel International & Pramati Technologies Pvt Ltd
        • MitraTech
        • Intelizest Coding Round
        • ZeMoSo
    • Interviews Theory
  • Programming Languages
    • Java Script >
      • Tutorials
      • Code Snippets
    • Reactive Programming >
      • Code Snippets
    • R
    • DataStructures >
      • LeetCode Problems
      • AnagramsSet
    • Core Java >
      • Codility
      • Java14
      • Threading >
        • ThreadsOrder
        • ProducerConsumer
        • Finalizer
        • RaceCondition
        • Executors
      • Important Points
      • Immutability
      • Dictionary
      • Sample Code Part 1 >
        • PatternLength
        • Serialization >
          • Kryo2
          • JAXB/XSD
          • XStream
        • MongoDB
        • New methods in Collections
        • MethodReferences
        • Complex Objects Comparator >
          • Performance
        • NIO >
          • NIO 2nd Sample
        • Date Converter
        • Minimum cost path
        • Find File
      • URL Validator
    • Julia
    • Python >
      • Decorators
      • String Formatting
      • Generators_Threads
      • JustLikeThat
    • Go >
      • Tutorial
      • CodeSnippet
      • Go Routine_Channel
      • Suggestions
    • Methodologies & Design Patterns >
      • Design Principles
      • Design Patterns >
        • Decorator
        • Proxy
        • Lazy Initialization
        • CombinatorPattern
        • RequestChaining
        • Singleton >
          • Singletons
  • Frameworks
    • AngularJS
    • Apache Velocity
    • Spring >
      • Spring Boot >
        • Issues
      • Quick View
    • Rest WebServices >
      • Interviews
      • Swagger
    • Cloudera BigData >
      • Ques_Ans
      • Hive
      • Apache Spark >
        • SparkCode
        • Sample1
        • DataFrames
        • RDDs
        • SparkStreaming
        • SparkFiles
    • Integration >
      • Apache Camel
    • Testing Frameworks >
      • JUnit >
        • JUnit Runners
      • EasyMock
      • Mockito >
        • Page 2
      • TestNG
    • Blockchain >
      • Ethereum Smart Contract
      • Blockchain Java Example
    • Microservices >
      • Design Patterns
    • AWS >
      • Honeycode
  • Databases
    • Oracle >
      • Interview1
      • SQL Queries
    • Elastic Search >
      • StudySources
  • Random issues
    • TOAD issue
    • Architect's suggestions
    • ApacheSpark Installation
  • Your Views

Git Setup

Disclaimer : Here I am discussing the steps which you can use while creating your personal Github respositories, don't suggest to follow the same steps for your official work.

Step1 : Register for your account on GitHub.
Step2 : Create a new repository by clicking on "New" button on top left of your home page like shown -
Picture

Step3 : Give the suitable name for your new repository. And good thing is that you can also make your new repository as
             'Private' or 'Public'
 Now you have your repository ready to hold your data, SIMPLE.
 You can access this repository from your favorite IDE, but GitHub is changing its access policy,
 "Basic authentication using a password to Git is deprecated and will soon no longer work.", you can it in the alert mail you
  receive when you try to access your repository using Basic Authentication via IDE.

 So what to do, nothing follow the link given in that mail or follow below steps to have your PAT-
 Step1 : Go to your profile on the top right corner of the home page -> Settings
 Step2 : Then click on the Developer settings from the left side menu as shown below -
Picture
 Step3 : Then click on the option marked below on the next page from the left menu -
Picture
 Step4 : Click on Generate new token as shown below -
Picture
Step5 : Give the required name for the Token & provide the required access like I have given full control to my token like
            shown below -
Picture
Step6 : Click on the Green button 'Generate token' at the bottom of the page. Now you have the token presented to you.
 Use this token instead of your Password when you do any Git specifc operations like clonning, commit, push etc.
 Use this token while using Git via your IDE also.

 Tip : If you are already using the Git url in your IDE & after that you are generating this token then how to make the changes
         in that existing setup?
 Solution : Go to Git perspective in your IDE, expand your repository. There you see - Branches, Tags, References,
​                   Remotes.
​                  Expand Remotes & you see (by default, if you have not changed the name of your default branch) 'Origin' which
                  will be pointing to the Git. It will be showing 2 further options - For Pull & one for Push.
                  You will need to update the credentials for both, as you will be doing both Pull & Push operations during your work
                  with Git. So right click on each & select Change Credentials there & provide token value as Password.
                  Also check that you are using correct user name there.
Powered by Create your own unique website with customizable templates.