Skip to content

Latest commit

 

History

History
65 lines (33 loc) · 1.31 KB

5-share&update.md

File metadata and controls

65 lines (33 loc) · 1.31 KB
  1. git remote add [alias] [url]

    add a git URL as an alias


    • git remote -v

      list of all remote repositories that are currently connected to your local repository




  1. git fetch [alias]

    fetch down all the branches from that Git remote



  1. git merge [alias]/[branch]

    merge a remote branch into your current branch to bring it up to date



  1. git push

    git pushes committed changes to all remote branches which are tracked


    • git push [remote] [branch_local]

      git push bitbucket feat/dune/login_api

      Transmit local branch commits to the remote repository branch,


    • git push -f

      Push the commit forcefully to remote


  1. git pull

    fetch and merge any commits from the tracking remote branch, git pull is a two step process

     - ***git fetch*** fetches the remote branches
     - ***git merge FETCH-HEAD*** and merges the locals with the latest HEAD available for each branch.
    

    • git pull [remote] [remote-branch-name]

    • git pull origin feat/dune/address_management

      Pull down a single branch only