Giter VIP home page Giter VIP logo

local-repo's Introduction

Publishing a Local Repository to Remote

  1. Create local changes and commit them

  2. Create a remote repository on Github and add it to the local repo

     git remote add origin <remote_origin_url>
  3. Move the main branch to main if it is not already main.

    git branch -M main 
    
  4. Push the branch to remote and set it to track the remote branch git push -u origin main | git push --set-upstream origin main

Creating pull Requests

  1. Create the new branch for the feature and commit it to the the repository you forked in your account

    git checkout -b <feature_branch>
    
    git push -u origin  <feature_branch>
    
  2. After committing the feature branch, a new pull request appears. You can now compare the differences between the the two branches, in this case the PULL-REQUESTS branch and the main branch of the repository you forked from. It uses the git diff command to compare the two branches. It shows files have been added, removed, deleted, changed and so on.

       git diff main PUll-REQUESTS 
    
  3. The last step click the Compare and Pull Request. Sending a request to the maintainers or the original author the repo, letting him/her look at your work, analyze it better, either to accept, request for changes or dismiss the request.

  4. A new conversation starts between you and the project collaborators who can start to discuss and look at your work, before accepting or declining the pull Request

  5. During the period of discussion, you and the other project collaborators can change the code to better fit the needs of the project. After that the original repository collaborators with write access can accept it or discard it, closing the Pull Request.

local-repo's People

Contributors

404xavier avatar

Watchers

 avatar

Forkers

vipermessy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.