Friday, 24 January 2020

Github Dump

GitHub

1- When you don't know what is the server port of PC 
        use this cmd-: ifconfig
            => sudo apt install net-tools (ifconfig inet 192.168.1.3)

2- Create a new branch on github   git checkout -b Dummy
       
        output:-  M   db/schema.rb
                      Switched to a new branch 'Dummy'

3- When you switched to exist branch   git checkout dev
        output:-  M   db/schema.rb
                       Switched to branch 'dev'

4- How to import dump database 
      pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d database_name       
       latest.dump

===================================================================================

1- How to fetch GitHub Branch
   => git fetch -t
      => github username: kapilgoyal6
       => Access Token: 7a5f01b52a9ab0f7069604154686b4a4046ac7a0

2- How to List Branch on Git?

   * The command to list all branches in local and remote repositories is:
          git branch -a

   * If you require only listing the remote branches from Git Bash then use this command:
         git branch -r
   * You may also use the show-branch command for seeing the branches and their commits as 
      follows:
        git show-branch



No comments:

Post a Comment

  Common Git Commands   Take clone of a repository git clone <remote-repository-url> ex: git clone  https://github.com/agricor/RegTech...