How To Update Existing Git Repository

[Solved] How To Update Existing Git Repository | Shell - Code Explorer | yomemimo.com
Question : how to update existing git repository

Answered by : lucifer-morningstar-wmdka7vscbn1

''' Updating on existing repository'''
//:- Find & copy Central Repo URL
git remote add upstream https://github.com/username/repositoryname.git
//pull down any changes and sync the local repo with the central repo
git pull upstream main // main is the default branch you can write your own branch name
//add changes
git add .
git commit -m "Message"
//push your changes up to your fork
git push origin main

Source : | Last Update : Wed, 12 Oct 22

Answers related to how to update existing git repository

Code Explorer Popular Question For Shell